04 2023 档案
摘要:Delete Columns To Make Sorted You are given an array of n strings strs, all of the same length. The strings can be arranged such that there is one on
阅读全文
摘要:Transpose Matrix Given a 2D integer array matrix, return the transpose of matrix. The transpose of a matrix is the matrix flipped over its main diagon
阅读全文
摘要:Backspace String Compare Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace c
阅读全文
摘要:Positions of Large Groups In a string s of lowercase letters, these letters form consecutive groups of the same character. For example, a string like
阅读全文
摘要:Largest Triangle Area Given an array of points on the X-Y plane points where points[i] = [xi, yi], return the area of the largest triangle that can be
阅读全文
摘要:Number of Lines To Write String You are given a string s of lowercase English letters and an array widths denoting how many pixels wide each lowercase
阅读全文
摘要:Toeplitz Matrix Given an m x n matrix, return true if the matrix is Toeplitz. Otherwise, return false. A matrix is Toeplitz if every diagonal from top
阅读全文
摘要:Number of Days Between Two Dates Write a program to count the number of days between two dates. The two dates are given as strings, their format is YY
阅读全文
摘要:Number of Steps to Reduce a Number to Zero Given an integer num, return the number of steps to reduce it to zero. In one step, if the current number i
阅读全文
摘要:The K Weakest Rows in a Matrix You are given an m x n binary matrix mat of 1's (representing soldiers) and 0's (representing civilians). The soldiers
阅读全文