摘要: DescriptionThe code base version is an integer start from 1 to n. One day, someone committed a bad version in the code case, so it caused this version 阅读全文
posted @ 2017-04-25 11:02 panini 阅读(208) 评论(0) 推荐(0) 编辑
摘要: DescriptionThere is an integer array which has the following features:The numbers in adjacent positions are different.A[0] < A[1] && A[A.length - 2] > 阅读全文
posted @ 2017-04-25 10:57 panini 阅读(188) 评论(0) 推荐(0) 编辑
摘要: DescriptionSuppose 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).Find the minimum 阅读全文
posted @ 2017-04-25 10:38 panini 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题目: You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes co 阅读全文
posted @ 2017-04-25 10:04 panini 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: 链接:https://l 阅读全文
posted @ 2017-04-25 10:04 panini 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,18]. 链接:htt 阅读全文
posted @ 2017-04-25 10:03 panini 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an integer n, return 1 - n in lexicographical order. For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. Please optimize your al 阅读全文
posted @ 2017-04-25 10:03 panini 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 题目: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rain 阅读全文
posted @ 2017-04-25 10:03 panini 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目: A robot is located at the top-left corner of a m x ngrid (marked 'Start' in the diagram below). The robot can only move either down or right at an 阅读全文
posted @ 2017-04-25 10:03 panini 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题目: Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution 阅读全文
posted @ 2017-04-25 10:03 panini 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to it 阅读全文
posted @ 2017-04-25 10:03 panini 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 题目: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep 阅读全文
posted @ 2017-04-25 10:03 panini 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example,If num 阅读全文
posted @ 2017-04-25 10:02 panini 阅读(295) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-04-25 10:01 panini 阅读(3) 评论(0) 推荐(0) 编辑