摘要:
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. 阅读全文
摘要:
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. 阅读全文
摘要:
The set [1,2,3,…,n] contains a total of n! unique permutations. 阅读全文
摘要:
Given a list, rotate the list to the right by k places, where k is non-negative. 阅读全文
摘要:
Given a collection of intervals, merge all overlapping intervals. 阅读全文
摘要:
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. 阅读全文
摘要:
Given an array of non-negative integers, you are initially positioned at the first index of the array. 阅读全文
摘要:
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. 阅读全文
摘要:
Given an array of strings, return all groups of strings that are anagrams. 阅读全文
摘要:
Implement pow(x, n). 阅读全文