LeetCode 830. Positions of Large Groups
Description https://leetcode.com/problems/positions-of-large-groups/ In a string s of lowercase letters, these letters form consecutive groups of the same character. For example, a string…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/positions-of-large-groups/ In a string s of lowercase letters, these letters form consecutive groups of the same character. For example, a string…
Description https://leetcode.com/problems/contains-duplicate-ii/ Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i -…
Description https://leetcode.com/problems/remove-linked-list-elements/ Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val…
Description https://leetcode.com/problems/third-maximum-number/ Given integer array nums, return the third maximum number in this array. If the third maximum does not exist, return…
Description https://leetcode.com/problems/two-sum-iii-data-structure-design/ Design a data structure that accepts a stream of integers and checks if it has a pair of…
Description https://leetcode.com/problems/number-of-segments-in-a-string/ You are given a string s, return the number of segments in the string. A segment is defined to be a contiguous…
Description https://leetcode.com/problems/truncate-sentence/ A sentence is a list of words that are separated by a single space with no leading or trailing spaces.…
Description https://leetcode.com/problems/sum-of-all-odd-length-subarrays/ Given an array of positive integers arr, calculate the sum of all possible odd-length subarrays. A subarray is a…
Description https://leetcode.com/problems/find-all-the-lonely-nodes/ In a binary tree, a lonely node is a node that is the only child of its parent node. The…
Description https://leetcode.com/problems/decode-xored-array/ There is a hidden integer array arr that consists of n non-negative integers. It was encoded into another integer array encoded of length n – 1, such…