摘要:
https://leetcode.com/problems/count-of-smaller-numbers-after-self/You are given an integer array nums and you have to return a new counts array. The c... 阅读全文
摘要:
https://leetcode.com/problems/sum-root-to-leaf-numbers/Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a n... 阅读全文
摘要:
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio... 阅读全文
摘要:
package abc.com;import java.util.LinkedList;public class TestLinkedList { static void prt(Object o) { System.out.print(o); } publi... 阅读全文
摘要:
https://leetcode.com/problems/gas-station/题目:There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have ... 阅读全文
摘要:
https://leetcode.com/problems/coin-change/You are given coins of different denominations and a total amount of money amount. Write a function to compu... 阅读全文
摘要:
https://leetcode.com/problems/binary-tree-maximum-path-sum/Given a binary tree, find the maximum path sum.For this problem, a path is defined as any s... 阅读全文
摘要:
https://leetcode.com/problems/search-for-a-range/Given a sorted array of integers, find the starting and ending position of a given target value.Your ... 阅读全文
摘要:
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in... 阅读全文
摘要:
https://leetcode.com/problems/edit-distance/Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each oper... 阅读全文