[Leetcode] 股票买卖问题总结

2020-02-06

本篇文章主要针对以下问题: 121. Best Time to Buy and Sell Stock 122. Best Time to Buy and Sell Stock II 123. Best Time to Buy and Sell Stock III 188. Best Time to

0 条评论
21 热度

[Leetcode] Top-K系列问题总结

2020-02-05

在本篇文章中,我将尝试总结一下Top-K系列问题。何谓Top-K问题,Top-K问题即类似: 215. Kth Largest Element in an Array | 数组中的第K个最大元素 692. Top K Frequent Words | 前K个高频单词 973. K Closest P

0 条评论
30 热度

[Leetcode] 494. Target Sum | 目标和

2020-02-03

You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o

0 条评论
14 热度