摘要: 题目 Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a give 阅读全文
posted @ 2020-07-03 21:33 无代码,非程序 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 题目 Given two strings S​1​​ and S​2​​ , S=S​1​​ −S​2​​ is defined to be the remaining string after taking all the characters in S​2​​ from S​1​​ . Your 阅读全文
posted @ 2020-07-03 19:25 无代码,非程序 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 题目 The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N 阅读全文
posted @ 2020-07-03 17:33 无代码,非程序 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 题目 Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which 阅读全文
posted @ 2020-07-03 11:25 无代码,非程序 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目 Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to outpu 阅读全文
posted @ 2020-07-03 08:48 无代码,非程序 阅读(177) 评论(0) 推荐(0) 编辑