摘要:
题目The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, …1 is read off as “one 1” or 11. 11 i... 阅读全文
摘要:
题目Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are ... 阅读全文
摘要:
题目Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a ... 阅读全文
摘要:
题目You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that... 阅读全文
摘要:
题目Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.分析题目要求不用 * / %三种运算符的条件下,求得两个i... 阅读全文
摘要:
题目The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a ... 阅读全文
摘要:
题目There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time co... 阅读全文
摘要:
题目Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note: You may assume that nums1 has enough spac... 阅读全文
摘要:
题目Given a sorted linked list, delete all duplicates such that each element appear only once.For example, Given 1->1->2, return 1->2. Given 1-... 阅读全文
摘要:
题目You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways ... 阅读全文