• LeetCode 3. 无重复字符的最长子串

题目给定一个字符串，请你找出其中不含有重复字符的 最长子串 的长度。示例 1:输入:"abcabcbb"输出:3解释:因为无重复字符的最长子串是"abc"，所以其长度为3。示例2:输入:"bbbbb"输出:1解释:因为无重复字符的最长子串是

查看全文

查看全文
• PAT A1100 Mars Numbers (20point(s))

People on Mars count their numbers with base 13:Zero on Earth is called "tret" on Mars.The numbers 1 to 12 on Earth is called "jan, feb

查看全文
• PAT A1140 Look-and-say Sequence (20point(s))

Look-and-saysequenceisasequenceofintegersasthefollowing:D,D1,D111,D113,D11231,D112213111,...whereDisin[0,9]except1.The(n+1)stnumberisakindofdescriptio

查看全文
• PAT A1136 A Delayed Palindrome (20point(s))

Consider a positive integer N written in standard notation with k+1 digits ai as ak⋯a1 a0 with 0≤a​i<10 for all i and ak>0. Then N is palindromi

查看全文
• PAT A1132 Cut Integer (20point(s))

CuttinganintegermeanstocutaKdigitsloneintegerZintotwointegersof(K/2)digitslongintegersAandB.Forexample,aftercuttingZ=167334,wehaveA=167andB=334.Itisin

查看全文
• PAT A1112 Stucked Keyboard (20point(s))

On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep

查看全文
• PAT A1108 Finding Average (20point(s))

The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input n

查看全文