Showing 3 of 469 questions
A special binary string has equal numbers of 0s and 1s, and any prefix has at least as many 1s as 0s. You need to recursively make the lexicographically largest special string possible from a given special binary string.
#1. Special Binary String
You are given a matrix and a series of update operations. Each operation specifies a submatrix that should have all its elements incremented by one. Your goal is to perform all the updates and return the modified matrix.
#2. Increment Submatrices by One
Convert a string into a 32-bit signed integer. Handle leading whitespace, signs, invalid input, and integer overflow according to the rules of the atoi function.
#3. String to Integer (atoi)