摘要:
https://leetcode.com/problems/minimum-size-subarray-sum/Given an array ofnpositive integers and a positive integers, find the minimal length of a suba... 阅读全文
摘要:
https://leetcode.com/problems/count-primes/Description:Count the number of prime numbers less than a non-negative number,n.解题思路:如何判定一个数为质数?1. 质数最小的是2。... 阅读全文
摘要:
https://leetcode.com/problems/count-complete-tree-nodes/Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fro... 阅读全文
摘要:
https://leetcode.com/problems/implement-stack-using-queues/Implement the following operations of a stack using queues.push(x) -- Push element x onto s... 阅读全文
摘要:
https://leetcode.com/problems/invert-binary-tree/Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9... 阅读全文