- 博客(212)
- 资源 (8)
- 收藏
- 关注
原创 36. Valid Sudoku
36. Valid Sudoku题目描述:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character '.'.题目大意:验证数独
2018-01-16 21:44:28
430
1
原创 JAVA生成字符数字交替的随机密码
package com.oovever.util;import java.util.Date;import java.util.Random;/** * PassWord工具类 * @author OovEver * 2018/1/14 23:58 */public class PasswordUtil {//定义可以使用的字符 public final static
2018-01-15 00:01:59
563
1
原创 JAVA中ResourceBundle使用详解
JAVA中ResourceBundle使用详解这个类主要用来解决国际化和本地化问题。国际化和本地化可不是两个概念,两者都是一起出现的。可以说,国际化的目的就是为了实现本地化。比如对于“取消”,中文中我们使用“取消”来表示,而英文中我们使用“cancel”。若我们的程序是面向国际的(这也是软件发展的一个趋势),那么使用的人群必然是多语言环境的,实现国际化就非常有必要。而ResourceBund
2018-01-14 22:40:50
93194
10
原创 554.Brick Wall
554.Brick Wall题目描述:There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. You want to draw a vertical li
2018-01-14 17:42:28
463
原创 166. Fraction to Recurring Decimal
166. Fraction to Recurring Decimal题目描述:Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating, enclose t
2018-01-14 17:06:08
317
原创 274. H-Index
274. H-Index题目描述:Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher’s h-index.According to the definition of h-index on W
2018-01-14 16:46:49
226
原创 438 .Find All Anagrams in a String
438 .Find All Anagrams in a String题目描述: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 b
2018-01-13 15:30:24
250
原创 204. Count Primes
204. Count Primes题目描述:Description:Count the number of prime numbers less than a non-negative number, n.题目大意:找出小于n的素数的个数。代码:package HashTable;/*** @author OovEver* 2018/1/12 21:59*/public class L
2018-01-12 22:13:41
217
原创 599. Minimum Index Sum of Two Lists
599. Minimum Index Sum of Two Lists题目描述:Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings.You need to help th
2018-01-11 16:00:00
371
原创 290. Word Pattern
290. Word Pattern题目描述:Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter in pattern and a non-e
2018-01-11 14:17:54
213
原创 500. Keyboard Row
500. Keyboard Row题目描述:Given a List of words, return the words that can be typed using letters of alphabet on only one row’s of American keyboard like the image below.Example 1:Input: ["Hello", "Alask
2018-01-11 14:04:52
463
原创 463. Island Perimeter
463. Island Perimeter题目描述:You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally
2018-01-11 13:41:38
236
原创 690. Employee Importance
690. Employee Importance题目描述:You are given a data structure of employee information, which includes the employee’s unique id, his importance value and his **direct**subordinates’ id.For example, emplo
2018-01-11 13:28:21
278
原创 739. Daily Temperatures
739. Daily Temperatures题目描述:Given a list of daily temperatures, produce a list that, for each day in the input, tells you how many days you would have to wait until a warmer temperature. If there is n
2018-01-10 00:12:26
304
原创 205. Isomorphic Strings
205. Isomorphic Strings题目描述:Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character must b
2018-01-09 23:51:21
281
原创 202. Happy Number
202. Happy Number题目描述:Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the
2018-01-09 10:48:46
245
原创 594. Longest Harmonious Subsequence
594. Longest Harmonious Subsequence题目描述:We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1.Now, given an integer array, you need
2018-01-09 10:33:13
265
原创 575. Distribute Candies
575. Distribute Candies题目描述:Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind.
2018-01-09 10:15:48
200
原创 447. Number of Boomerangs
447. Number of Boomerangs题目描述:Given n points in the plane that are all pairwise distinct, a “boomerang” is a tuple of points (i, j, k) such that the distance between iand j equals the distance between
2018-01-09 00:08:03
238
原创 409. Longest Palindrome
409. Longest Palindrome题目描述:Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.This is case sensitive, for
2018-01-08 23:36:49
209
原创 375. Guess Number Higher or Lower II
375. Guess Number Higher or Lower II题目描述:We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picked.Every time you guess wrong, I’ll tel
2018-01-08 14:30:33
226
原创 486. Predict the Winner
486. Predict the Winner题目描述:Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so on
2018-01-08 13:44:37
209
原创 464 Can I Win
464 Can I Win题目描述:In the “100 game,” two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach or exceed 100 wins.What if we cha
2018-01-08 13:26:25
255
原创 309. Best Time to Buy and Sell Stock with Cooldown
309. Best Time to Buy and Sell Stock with Cooldown题目描述:Say you have an array for which the i*th element is the price of a given stock on day *i.Design an algorithm to find the maximum profit. You may
2018-01-07 20:52:44
208
原创 638. Shopping Offers
638. Shopping Offers题目描述:In LeetCode Store, there are some kinds of items to sell. Each item has a price.However, there are some special offers, and a special offer consists of one or more different k
2018-01-07 18:48:23
305
原创 264. Ugly Number II
264. Ugly Number II题目描述:Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequ
2018-01-07 17:12:24
189
原创 304.Range Sum Query 2D - Immutable
304.Range Sum Query 2D - Immutable题目描述:Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (*row*1, *col*1) and lower right corner (*row*2, *co
2018-01-07 16:28:35
238
原创 416. Partition Equal Subset Sum
416. Partition Equal Subset Sum题目描述:Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is eq
2018-01-06 16:57:14
210
原创 357. Count Numbers with Unique Digits
357. Count Numbers with Unique Digits题目描述:Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.Example: Given n = 2, return 91. (The answer should be the total n
2018-01-06 15:28:16
201
原创 576. Out of Boundary Paths
576. Out of Boundary Paths题目描述:There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross the grid boundary in four directions (
2018-01-06 15:14:38
240
原创 322. Coin Change
322. Coin Change题目描述:You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If
2018-01-06 14:52:22
197
原创 368. Largest Divisible Subset
368. Largest Divisible Subset题目描述:Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: Si % Sj = 0 or Sj % Si = 0.If t
2018-01-05 11:18:20
239
原创 413 Arithmetic Slices
413 Arithmetic Slices题目描述:A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.For example, these
2018-01-04 23:21:20
224
原创 343. Integer Break
343. Integer Break题目描述:Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get.For exampl
2018-01-04 22:48:29
168
原创 376. Wiggle Subsequence
376. Wiggle Subsequence题目描述:A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if o
2018-01-04 21:59:13
306
原创 338. Counting Bits
338. Counting Bits题目描述:Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them as an array.Exam
2018-01-03 16:46:31
179
原创 377. Combination Sum IV
377. Combination Sum IV题目描述:Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.Example:nums = [1, 2,
2018-01-03 16:35:47
196
原创 392. Is Subsequence
392. Is Subsequence题目描述:Given a string s and a string t, check if s is subsequence of t.You may assume that there is only lower case English letters in both s and t. t is potentially a very long (leng
2018-01-03 11:22:19
178
原创 523. Continuous Subarray Sum
523. Continuous Subarray Sum题目描述:Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to the mu
2018-01-03 10:57:13
346
原创 300. Longest Increasing Subsequence
300. Longest Increasing Subsequence题目描述:Given an unsorted array of integers, find the length of longest increasing subsequence.For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The longest increasing
2018-01-03 10:31:55
201
MyEclipse汉化+破解
2014-12-03
小学期异质链表
2013-08-28
猜单词游戏完成版
2013-08-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人