摘要:https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array/ Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e
阅读全文
随笔分类 - LeetCode
摘要:https://oj.leetcode.com/problems/merge-two-sorted-lists/ Merge two sorted linked lists and return it as a new list. The new list should be made by spl
阅读全文
摘要:https://oj.leetcode.com/problems/convert-sorted-array-to-binary-search-tree/Given an array where elements are sorted in ascending order, convert it to...
阅读全文
摘要:https://oj.leetcode.com/problems/edit-distance/Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each o...
阅读全文
摘要:https://oj.leetcode.com/problems/triangle/Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers o...
阅读全文
摘要:https://oj.leetcode.com/problems/word-break-ii/Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is ...
阅读全文
摘要:https://oj.leetcode.com/problems/word-break/Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequenc...
阅读全文
摘要:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/Say you have an array for which theithelement is the price of a given stock on da...
阅读全文
摘要:https://oj.leetcode.com/problems/maximum-product-subarray/Find the contiguous subarray within an array (containing at least one number) which has the ...
阅读全文
摘要:https://oj.leetcode.com/problems/minimum-path-sum/Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichmini...
阅读全文
摘要:https://oj.leetcode.com/problems/unique-paths-ii/Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique p...
阅读全文
摘要:https://oj.leetcode.com/problems/unique-paths/A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot ca...
阅读全文
摘要:https://oj.leetcode.com/problems/string-to-integer-atoi/Implementatoito convert a string to an integer.Hint:Carefully consider all possible input case...
阅读全文
摘要:https://oj.leetcode.com/problems/longest-palindromic-substring/Given a stringS, find the longest palindromic substring inS. You may assume that the ma...
阅读全文
摘要:https://leetcode.com/problems/median-of-two-sorted-arrays/description/ There are two sorted arrays A and B of size m and n respectively. Find the medi
阅读全文
摘要:https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length of the longest substring without repe
阅读全文
摘要:https://oj.leetcode.com/problems/add-two-numbers/ You are given two linked lists representing two non-negative numbers. The digits are stored in rever
阅读全文
摘要:https://oj.leetcode.com/problems/majority-element/Given an array of sizen, find the majority element. The majority element is the element that appears...
阅读全文
摘要:https://oj.leetcode.com/problems/climbing-stairs/You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or...
阅读全文
摘要:https://oj.leetcode.com/problems/single-number-ii/Given an array of integers, every element appearsthreetimes except for one. Find that single one.Not...
阅读全文

浙公网安备 33010602011771号