LeetCode 905. Sort Array By Parity
Description https://leetcode.com/problems/sort-array-by-parity/ Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/sort-array-by-parity/ Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all…
Description https://leetcode.com/problems/sign-of-the-product-of-an-array/ There is a function signFunc(x) that returns: 1 if x is positive. -1 if x is negative. 0 if x is equal to 0. You are given an integer array nums.…
Description https://leetcode.com/problems/determine-color-of-a-chessboard-square/ You are given coordinates, a string that represents the coordinates of a square of the chessboard. Below is a…
Description https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side/ Given an array arr, replace every element in that array with the greatest element among the elements to its right, and…
Description https://leetcode.com/problems/max-consecutive-ones/ Given a binary array nums, return the maximum number of consecutive 1‘s in the array. Example 1: Input: nums = [1,1,0,1,1,1]…
Description https://leetcode.com/problems/get-maximum-in-generated-array/ You are given an integer n. An array nums of length n + 1 is generated in the following way: nums[0] = 0…
Description https://leetcode.com/problems/longest-continuous-increasing-subsequence/ Given an unsorted array of integers nums, return the length of the longest continuous increasing subsequence (i.e. subarray). The subsequence must be strictly increasing.…
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…