
刷题
文章平均质量分 88
zljiaa
这个作者很懒,什么都没留下…
展开
-
(Java)剑指offer之数组中重复的数
【题目描述】在一个长度为n的数组里的所有数字都在0到n-1的范围内。 数组中某些数字是重复的,但不知道有几个数字是重复的。也不知道每个数字重复几次。请找出数组中任意一个重复的数字。 例如,如果输入长度为7的数组{2,3,1,0,2,5,3},那么对应的输出是重复的数字2或者3。 【参数说明】 numbers: 输入的整数数组 length: 数组的长度 duplication: 输出任意一...原创 2018-08-10 10:31:53 · 272 阅读 · 0 评论 -
LeetCode字母排列
LeetCode字母排列621. Task Scheduler767. Reorganize String358. Rearrange String k Distance Apart 621. Task Scheduler Given a char array representing tasks CPU need to do. It contains capital letters A to Z...原创 2018-10-07 14:56:15 · 316 阅读 · 0 评论 -
leetcode解码字符串
“(”出现,进入递归。 394. Decode String Given an encoded string, return it’s decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exact...原创 2018-10-07 20:59:07 · 852 阅读 · 0 评论