自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 收藏
  • 关注

转载 leetcode 009 Palindrome Number

9. Palindrome Number Total 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 142

转载 leetcode 007 Reverse Integer

9. Palindrome Number Total 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 162

转载 leetcode 005 Longest Palindromic Substring(java)

5. Longest Palindromic Substring My Submissions Question Total Accepted:87802Total Submissions:399054Difficulty:Medium Given a stringS, find the longest palindromic substri...

2016-01-15 17:59:00 169

转载 leetcode 004 Median of Two Sorted Arrays(java)

Median of Two Sorted Arrays My Submissions Question Total Accepted:75699Total Submissions:428881Difficulty:Hard There are two sorted arraysnums1andnums2of size m and n r...

2015-12-13 22:03:00 129

转载 leetcode 003 Longest Substring Without Repeating Characters(java)

Longest Substring Without Repeating Characters My Submissions Question Total Accepted:111400Total Submissions:532861Difficulty:Medium Given a string, find the length of the ...

2015-12-09 22:55:00 100

转载 leetcode 002 Add Two Numbers(java)

Add Two Numbers My Submissions Question Total Accepted:105768Total Submissions:494750Difficulty:Medium You are given two linked lists representing two non-negative numbers. ...

2015-12-09 00:27:00 110

转载 leetcode 001 Tow Sum(java)

Two Sum Given 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 134

转载 USACO 1.5 Prime Palindromes

Prime Palindromes The 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 126

转载 USACO 1.5 Number Triangles

Number Triangles Consider 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 112

转载 USACO 1.4 Mother's Milk

Mother's Milk Farmer 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 191

转载 USACO 1.4 Arithmetic Progressions

Arithmetic Progressions An 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 199

转载 USACO 1.3 Ski Course Design

Ski Course Design Farmer 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 170

转载 USACO 1.3 Wormholes

Wormholes Farmer 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 110

转载 USACO 1.3 Combination Lock

Combination Lock Farmer 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 154

转载 USACO 1.3 Prime Cryptarithm

Prime Cryptarithm The 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 105

转载 USACO 1.3 Barn Repair

Barn Repair It 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 72

转载 USACO 1.3 Mixing Milk

Mixing Milk The 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 176

转载 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 115

转载 USACO 1.2 Palindromic Squares

Palindromic SquaresRob Kolstad Palindromes 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 129

转载 USACO 1.2 Name That Number

Name That Number Among 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 123

转载 USACO 1.2 Transformations

Transformations A 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 134

转载 USACO 1.1 Milking Cows

Milking Cows Three 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 101

转载 USACO 1.1 Broken Necklace

Broken Necklace You 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 73

转载 USACO 1.1 Friday the Thirteenth

Friday the Thirteenth Is 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 232

转载 HDU 1016 Prime Ring Problem

Prime Ring Problem Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34729Accepted Submission(s): 15381 Problem Description A ring is ...

2015-08-28 17:51:00 89

转载 USACO 1.1 Greedy Gift Givers

Greedy Gift Givers A 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 100

转载 USACO 1.1 Your Ride Is Here

Your Ride Is Here It 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 122

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除