![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
coding daily
weixin_41698125
这个作者很懒,什么都没留下…
展开
-
cin和scanf
今天刷着PTA的数据结构与算法题目集,遇到一道题如下: 7-19 求链式线性表的倒数第K项(20 分) 给定一系列正整数,请设计一个尽可能高效的算法,查找倒数第K个位置上的数字。 输入格式: 输入首先给出一个正整数K,随后是若干正整数,最后以一个负整数表示结尾(该负数不算在序列内,不要处理)。 输出格式: 输出倒数第K个位置上的数据。如果这个位置不存在,输出错误信息NULL。 ...原创 2018-07-31 22:18:36 · 699 阅读 · 0 评论 -
[Leetcode]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 w...原创 2019-01-29 21:02:24 · 147 阅读 · 0 评论