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).
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.
Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray).
Do you like me?
「LeetCode刷题（Easy Rank）：937. Reorder Log Files」
32 • 0 • 1月前
「LeetCode刷题（Easy Rank）：929. Unique Email Addresses」
14 • 0 • 1月前
「LeetCode刷题（Easy Rank）：859. Buddy Strings」
11 • 0 • 1月前
「LeetCode刷题（Easy Rank）：824. Goat Latin」
12 • 0 • 1月前
「LeetCode刷题（Easy Rank）：819. Most Common Word」
17 • 0 • 1月前