随笔分类 - Leetcode
摘要:题目链接 "https://leetcode.com/problems/binary tree inorder traversal/" 题目原文 Given a binary tree, return the inorder traversal of its nodes' values. For e
阅读全文
摘要:题目链接 "https://leetcode.com/problems/restore ip addresses/" 题目原文 Given a string containing only digits, restore it by returning all possible valid IP a
阅读全文
摘要:题目链接 "https://leetcode.com/problems/reverse linked list ii/" 题目原文 Reverse a linked list from position m to n. Do it in place and in one pass. For exam
阅读全文
摘要:题目链接 "https://leetcode.com/problems/decode ways/" 题目原文 A message containing letters from is being encoded to numbers using the following mapping: 'A'
阅读全文
摘要:题目链接 "https://leetcode.com/problems/subsets ii/" 题目原文 Given a collection of integers that might contain duplicates, nums, return all possible subsets.
阅读全文
摘要:题目链接 "https://leetcode.com/problems/gray code/" 题目原文 The gray code is a binary numeral system where two successive values differ in only one bit. Give
阅读全文
摘要:题目链接 "https://leetcode.com/problems/merge sorted array/" 题目原文 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted ar
阅读全文
摘要:题目链接 "https://leetcode.com/problems/scramble string/" 题目原文 We say that "rgtae" is a scrambled string of "great". Given two strings s1 and s2 of the sa
阅读全文
摘要:题目链接 "https://leetcode.com/problems/partition list/" 题目原文 Given a linked list and a value x, partition it such that all nodes less than x come before
阅读全文
摘要:题目链接 "https://leetcode.com/problems/maximal rectangle/" 题目原文 Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing a
阅读全文
摘要:题目链接 "https://leetcode.com/problems/largest rectangle in histogram/" 题目原文 Given n non negative integers representing the histogram's bar height where
阅读全文
摘要:题目链接 "https://leetcode.com/problems/remove duplicates from sorted list/" 题目原文 Given a sorted linked list, delete all duplicates such that each element
阅读全文
摘要:题目链接 "https://leetcode.com/problems/remove duplicates from sorted list ii/" 题目原文 Given a sorted linked list, delete all nodes that have duplicate numb
阅读全文
摘要:题目链接 "https://leetcode.com/problems/search in rotated sorted array ii/" 题目原文 Follow up for "Search in Rotated Sorted Array": What if duplicates are al
阅读全文
摘要:题目链接 "https://leetcode.com/problems/remove duplicates from sorted array ii/" 题目原文
Follow up for "Remove Duplicates":
What if duplicates are allow...
阅读全文
摘要:题目链接 "https://leetcode.com/problems/word search/" 题目原文
Given a 2D board and a word, find if the word exists in the grid. The word can be constru...
阅读全文
摘要:题目链接 "https://leetcode.com/problems/subsets/" 题目原文
Given a set of distinct integers, nums, return all possible subsets. Note:
Elements in a subs...
阅读全文
摘要:题目链接 "https://leetcode.com/problems/combinations/" 题目原文
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n....
阅读全文
摘要:题目链接 "https://leetcode.com/problems/minimum window substring/" 题目原文
Given a string S and a string T, find the minimum window in S which will cont...
阅读全文
摘要:题目链接 "https://leetcode.com/problems/sort colors/" 题目原文
Given an array with n objects colored red, white or blue, sort them so that objects of the...
阅读全文

浙公网安备 33010602011771号