LeetCode】Largest Number 解题报告标签(空格分隔): LeetCode题目地址:https://leetcode.com/problems/largest-number/#/description题目描述:Given a list of non negative integers, arrange them such that they form the largest nu
原创 2021-07-14 10:22:14
63阅读
LeetCode】Gas Station 解题报告标签(空格分隔): LeetCode题目地址:https://leetcode.com/problems/gas-station/#/description题目描述:There are N gas stations along a circular route, where the amount of gas at station i is gas
原创 2021-07-14 11:44:14
116阅读
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
转载 2016-01-17 18:26:00
109阅读
2评论
【题目】Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Rem...
转载 2015-02-19 17:01:00
185阅读
2评论
LeetCode】Island Perimeter 解题报告[LeetCode]https://leetcode.com/problems/island-perimeter/Total Accepted: 16143Total Submissions: 28552Difficulty: EasyQuestion You are given a map in form of a two-
原创 2022-03-02 15:22:23
144阅读
LeetCode】Gas Station 解题报告标签(空格分隔): LeetCode题目地址:https://leetcode.com/problems/gas-station/#/description题目描述:There are N
原创 2022-03-02 15:48:06
163阅读
LeetCode】Largest Number 解题报告标签(空格分隔): LeetCode题目地址:https://leetcode.com/problems/largest-number/#/description题目描述:
原创 2022-03-02 15:56:56
40阅读
[题目描述]Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.[解题思路]非常常见的递
LeetCode】01 Matrix 解题报告标签(空格分隔): LeetCode题目地址:https://leetcode.com/problems/01-matrix/#/description题目描述:Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.The distanc
原创 2021-07-14 10:22:17
159阅读
LeetCode】Island Perimeter 解题报告[LeetCode]https://leetcode.com/problems/island-perimeter/Total Accepted: 16143Total Submissions: 28552Difficulty: EasyQuestion You are given a map in form of a two-
原创 2021-07-14 11:40:10
94阅读
【题目】 Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return [ ["aa
转载 2017-05-27 17:27:00
73阅读
2评论
[题目描述]Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are some good questions to ask before coding. Bon
[题目描述]Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 But the following
leetcode解题报告 动态规划
原创 2015-04-01 18:01:43
211阅读
LeetCode】01 Matrix 解题报告标签(空格分隔): LeetCode题目地址:https://leetcode.com/problems/01-matrix/#/description题目描述:Given a matrix
原创 2022-03-02 15:55:40
96阅读
【题目】 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set
[题目描述]Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the arra
原创 2013-10-09 20:58:59
900阅读
Leetcode解题报告 动态规划
原创 2015-03-30 23:40:23
818阅读
leetcode解题报告 动态规划
原创 2015-04-01 07:47:27
276阅读
  • 1
  • 2
  • 3
  • 4
  • 5