
LeetCode
fly_above_sky
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 438 Find All Anagrams in a String解析
leetcode 438 解析题目描述 Given a string s and a non-empty string p, find all the start indices of p’s anagrams in s. Strings consists of lowercase English letters only and the length of both strings s and原创 2017-11-29 14:18:40 · 172 阅读 · 0 评论 -
leetcode 233 Number of Digit One
题目描述 Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example: Given n = 13, Return 6, because digit 1 occurred in...原创 2018-03-14 21:44:11 · 240 阅读 · 0 评论 -
LeetCode 93 子网 划分
题目: Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given “25525511135”, return [“255.255.11.135”, “255.255.111.35”]. (Order...原创 2018-02-28 21:38:20 · 405 阅读 · 0 评论 -
剑指offer_二进制1的个数
问题描述 输入一个整数,输出该数二进制表示中1的个数。其中负数用补码表示。 public class Solution { //解法一 循环次数为n二进制 1所在的最高位-最低位 /* public int NumberOf1(int n) { int count = 0; int flag = 1; while(flag...原创 2018-03-05 01:22:31 · 152 阅读 · 0 评论 -
leetcode215 - Kth Largest Element in an Array (JAVA版本)
题目描述 Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For example, Given [3,2,1,5,6,4] and k = 2,...原创 2018-03-13 19:28:56 · 271 阅读 · 0 评论 -
leetcode75 - sorted color
题目描述 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the ...原创 2018-03-13 20:24:25 · 231 阅读 · 0 评论