Given a matrix A, return the transpose of A.The transpose of a matrix is the matrix flipped over it’s main diagonal, switching the row and column indices of the matrix.
In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. There is at least one empty seat, and at least one person sitting.
A 3 x 3 magic square is a 3 x 3 grid filled with distinct numbers from 1 to 9 such that each row, column, and both diagonals all have the same sum.
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.
In a string of lowercase letters, these letters form consecutive groups of the same character.For example, a string like S = "abbxxxxzyy" has the groups "a", "bb", "xxxx", "z" and "yy".
S = "abbxxxxzyy"
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.Now given an M x N matrix, return True if and only if the matrix is Toeplitz.
M x N
In a given integer array nums, there is always exactly one largest element.Find whether the largest element in the array is at least twice as much as every other number in the array.
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed).
Given an array of integers nums, write a method that returns the “pivot” index of this array.
We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11).
Do you like me?
「LeetCode刷题（Easy Rank）：937. Reorder Log Files」
34 • 0 • 2月前
「LeetCode刷题（Easy Rank）：929. Unique Email Addresses」
15 • 0 • 2月前
「LeetCode刷题（Easy Rank）：859. Buddy Strings」
12 • 0 • 2月前
「LeetCode刷题（Easy Rank）：824. Goat Latin」
13 • 0 • 2月前
「LeetCode刷题（Easy Rank）：819. Most Common Word」
17 • 0 • 2月前