![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
左程云讲解
LUCASYAN个
这个作者很懒,什么都没留下…
展开
-
leetcode 239. Sliding Window Maximum 双端队列 滑动窗口最大值
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window原创 2017-09-04 15:25:15 · 853 阅读 · 0 评论 -
分金子(360公司2017春招真题) 纸牌博弈问题 程序员代码面试指南
A、B两伙马贼意外地在一片沙漠中发现了一处金矿,双方都想独占金矿,但各自的实力都不足以吞下对方,经过谈判后,双方同意用一个公平的方式来处理这片金矿。处理的规则如下:他们把整个金矿分成n段,由A、B开始轮流从最左端或最右端占据一段,直到分完为止。 马贼A想提前知道他们能分到多少金子,因此请你帮忙计算他们最后各自拥有多少金子?(两伙马贼均会采取对己方有利的策略)输入原创 2017-09-18 20:00:56 · 941 阅读 · 0 评论 -
502. IPO
Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase its capital before the IPO. Since it原创 2017-09-02 18:25:16 · 241 阅读 · 0 评论