摘要: 请勿转载 一、 Ubuntu的安装及准备 (一)Ubuntu安装 从Microsoft Store中搜索Ubuntu 20.04 LTS并下载 下载成功后,按照提示输入用户名和密码 (二)gcc gdb clang build-essential的安装 打开ubuntu输入依次输入下列命令 sudo 阅读全文
posted @ 2021-02-14 21:15 ComgLq 阅读(1210) 评论(0) 推荐(0)
摘要: QUESTION: SOURCE: http://acm.hdu.edu.cn/showproblem.php?pid=1022 MENTALITY The train station is a model of stack, which operations can only occur at t 阅读全文
posted @ 2020-11-16 16:33 ComgLq 阅读(73) 评论(0) 推荐(0)
摘要: 题目如图: 链接: 解法一: 思路: 1.构造链表栈 2.在每次push的时候检查最小值变动 3.在每次pop的时候遍历检查最小值变动 4.top和getMin直接返回 代码: public class leetcode155 { static class Stack { Node head; No 阅读全文
posted @ 2020-11-12 16:57 ComgLq 阅读(57) 评论(0) 推荐(0)