摘要:
题目:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 ... 阅读全文
摘要:
题目:Given a string containing just the characters '(' and ')', find the length of the longest valid... 阅读全文
摘要:
题目:You are given a string, s, and a list of words, words, that are all of the same length. Find al... 阅读全文
摘要:
题目:There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of th... 阅读全文
摘要:
题目:Determine whether an integer is a palindrome. Do this without extra space.思路:一个技巧就是先计算出一共几位数,对应... 阅读全文
摘要:
题目:Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transf... 阅读全文
摘要:
题目:Given two words (beginWord and endWord), and a dictionary's word list, find the length of short... 阅读全文
摘要:
题目:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexi... 阅读全文
摘要:
题目:Implement regular expression matching with support for '.' and '*'.'.' Matches any single chara... 阅读全文
摘要:
题目:Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume ... 阅读全文