#### LeetCode – Strings – Maximum Score After Splitting a String

Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and right substring). The score after splitting…

Skip to content
# Month: April 2020

#### LeetCode – Strings – Maximum Score After Splitting a String

#### LeetCode – Strings – Reformat The String

#### LeetCode – Arrays – Duplicate Zeros

#### LeetCode – Arrays – Rank Transform of an Array

#### LeetCode – Arrays – Element Appearing More Than 25% In Sorted Array

#### LeetCode – Arrays – Shift 2D Grid

#### LeetCode – Arrays – Count Largest Group

#### LeetCode – Arrays – Minimum Value to Get Positive Step by Step Sum

#### LeetCode – Arrays – Play with Chips

#### LeetCode – Arrays – Minimum Absolute Difference

#### You missed

Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and right substring). The score after splitting…

Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You have to find a permutation of the string where no letter is followed…

Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond the length of the original array…

Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rules: Example 1: Input: arr…

Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time. Return that integer. Example 1: Input:…

Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Return the 2D grid after…

Given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return how many groups have the largest size. Example 1: Input:…

Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of startValue plus elements in nums…

There are some chips, and the i-th chip is at position chips. You can perform any of the two following types of moves any number of times (possibly zero) on…

Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements. Return a list of pairs in ascending order(with respect…