- 博客(27)
- 收藏
- 关注
转载 leetcode 009 Palindrome Number
9. Palindrome NumberTotal Accepted: 119423 Total Submissions: 378311 Difficulty: Easy Determine whether an integer is a palindrome. Do this without extra space.click to show ...
2016-04-21 20:21:00
99
转载 leetcode 007 Reverse Integer
9. Palindrome NumberTotal Accepted: 119423 Total Submissions: 378311 Difficulty: Easy Determine whether an integer is a palindrome. Do this without extra space.click to show ...
2016-04-19 19:56:00
115
转载 leetcode 005 Longest Palindromic Substring(java)
5. Longest Palindromic SubstringMy SubmissionsQuestionTotal Accepted:87802Total Submissions:399054Difficulty:MediumGiven a stringS, find the longest palindromic substri...
2016-01-15 17:59:00
128
转载 leetcode 004 Median of Two Sorted Arrays(java)
Median of Two Sorted ArraysMy SubmissionsQuestionTotal Accepted:75699Total Submissions:428881Difficulty:HardThere are two sorted arraysnums1andnums2of size m and n r...
2015-12-13 22:03:00
93
转载 leetcode 003 Longest Substring Without Repeating Characters(java)
Longest Substring Without Repeating CharactersMy SubmissionsQuestionTotal Accepted:111400Total Submissions:532861Difficulty:MediumGiven a string, find the length of the ...
2015-12-09 22:55:00
74
转载 leetcode 002 Add Two Numbers(java)
Add Two NumbersMy SubmissionsQuestionTotal Accepted:105768Total Submissions:494750Difficulty:MediumYou are given two linked lists representing two non-negative numbers. ...
2015-12-09 00:27:00
84
转载 leetcode 001 Tow Sum(java)
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add...
2015-12-08 00:03:00
102
转载 USACO 1.5 Prime Palindromes
Prime PalindromesThe number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as backward). Write a program that finds al...
2015-10-15 22:48:00
101
转载 USACO 1.5 Number Triangles
Number TrianglesConsider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a route that starts at the top and ends somewhere ...
2015-09-11 14:47:00
91
转载 USACO 1.4 Mother's Milk
Mother's MilkFarmer John has three milking buckets of capacity A, B, and C liters. Each of the numbers A, B, and C is an integer from 1 through 20, inclusive. Initially, buckets A and B are emp...
2015-09-10 01:03:00
160
转载 USACO 1.4 Arithmetic Progressions
Arithmetic ProgressionsAn arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=0,1,2,3,... . For this problem, a is a non-negative integer and b is a positive intege...
2015-09-10 00:40:00
162
转载 USACO 1.3 Ski Course Design
Ski Course DesignFarmer John has N hills on his farm (1 <= N <= 1,000), each with an integer elevation in the range 0 .. 100. In the winter, since there is abundant snow on these hills, F...
2015-09-09 01:05:00
141
转载 USACO 1.3 Wormholes
WormholesFarmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 <= N <= 12, N even) to materialize on his farm, each located a...
2015-09-08 01:04:00
88
转载 USACO 1.3 Combination Lock
Combination LockFarmer John's cows keep escaping from his farm and causing mischief. To try and prevent them from leaving, he purchases a fancy combination lock to keep his cows from opening th...
2015-09-05 19:42:00
129
转载 USACO 1.3 Prime Cryptarithm
Prime CryptarithmThe following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions marked with *. If the set of...
2015-09-04 16:18:00
83
转载 USACO 1.3 Barn Repair
Barn RepairIt was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacation, so the barn was not complet...
2015-09-04 00:43:00
57
转载 USACO 1.3 Mixing Milk
Mixing MilkThe Merry Milk Makers company buys milk from farmers, packages it into attractive 1- and 2-Unit bottles, and then sells that milk to grocery stores so we can each start our da...
2015-09-03 21:24:00
137
转载 USACO 1.2 Dual Palindromes
Dual PalindromesMario Cruz (Colombia) & Hugo Rickeboer (Argentina)A number that reads the same from right to left as when read from left to right is called a palindrome. The number 12321 is...
2015-09-03 14:47:00
101
转载 USACO 1.2 Palindromic Squares
Palindromic SquaresRob KolstadPalindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 <= B <= 20 base 10), pr...
2015-09-01 21:22:00
108
转载 USACO 1.2 Name That Number
Name That NumberAmong the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The cow hands don't appreciate the advantage of...
2015-08-29 14:40:00
102
转载 USACO 1.2 Transformations
TransformationsA square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum trans...
2015-08-29 08:51:00
111
转载 USACO 1.1 Milking Cows
Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at ti...
2015-08-29 06:20:00
82
转载 USACO 1.1 Broken Necklace
Broken NecklaceYou have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two examples for n=...
2015-08-29 01:40:00
53
转载 USACO 1.1 Friday the Thirteenth
Friday the ThirteenthIs Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answer this question, wri...
2015-08-28 18:44:00
198
转载 HDU 1016 Prime Ring Problem
Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34729Accepted Submission(s): 15381Problem DescriptionA ring is ...
2015-08-28 17:51:00
71
转载 USACO 1.1 Greedy Gift Givers
Greedy Gift GiversA group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to any or all of the ot...
2015-08-28 17:46:00
80
转载 USACO 1.1 Your Ride Is Here
Your Ride Is HereIt is a well-known fact that behind every good comet is a UFO. These UFOs often come to collect loyal supporters from here on Earth. Unfortunately, they only have room to p...
2015-08-28 13:04:00
96
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人