上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 50 下一页
摘要: Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each input file contains one test 阅读全文
posted @ 2020-01-28 22:00 SteveYu 阅读(166) 评论(0) 推荐(0) 编辑
摘要: To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords 阅读全文
posted @ 2020-01-28 21:41 SteveYu 阅读(220) 评论(0) 推荐(0) 编辑
摘要: People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher 阅读全文
posted @ 2020-01-28 21:14 SteveYu 阅读(121) 评论(0) 推荐(0) 编辑
摘要: KMP算法 在字符串匹配中,我们一般是BF算法,暴力破解。当然上完数据结构课之后,我们知道可以通过KMP进行优化。 上数据结构这门课的时候,我没有好好听KMP,本篇文章参考程杰老师的《大话数据结构》中KMP算法一章节记录的笔记,可以的话请阅读原书中该章节,这里相当于原书的复述。 这边引用书中的一句话 阅读全文
posted @ 2020-01-28 20:30 SteveYu 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c 阅读全文
posted @ 2020-01-28 17:32 SteveYu 阅读(129) 评论(0) 推荐(0) 编辑
摘要: XCode + IOS + Flutter真机调试 报错: Could not build the precompiled application for the device. It appears that your application still contains the default 阅读全文
posted @ 2020-01-28 00:24 SteveYu 阅读(4714) 评论(1) 推荐(0) 编辑
摘要: Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 阅读全文
posted @ 2020-01-27 16:57 SteveYu 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Consider a positive integer N written in standard notation with k+1 digits a​i​​ as a​k​​⋯a​1​​a​0​​ with 0 for all i and a​k​​>0. Then N is palindrom 阅读全文
posted @ 2020-01-27 16:29 SteveYu 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains 阅读全文
posted @ 2020-01-27 15:59 SteveYu 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe 阅读全文
posted @ 2020-01-27 15:08 SteveYu 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run sim 阅读全文
posted @ 2020-01-27 14:45 SteveYu 阅读(182) 评论(0) 推荐(0) 编辑
摘要: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years 阅读全文
posted @ 2020-01-27 13:22 SteveYu 阅读(142) 评论(0) 推荐(0) 编辑
摘要: A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number 阅读全文
posted @ 2020-01-27 12:44 SteveYu 阅读(167) 评论(0) 推荐(0) 编辑
摘要: With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba 阅读全文
posted @ 2020-01-26 19:30 SteveYu 阅读(145) 评论(0) 推荐(0) 编辑
摘要: The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a 阅读全文
posted @ 2020-01-26 17:56 SteveYu 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 50 下一页