![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
code jam
文章平均质量分 82
心跳的节奏eric
这个作者很懒,什么都没留下…
展开
-
Google Code Jam Notes - Bad Horse - Java
Problemhttp://code.google.com/codejam/contest/2845486/dashboard#s=p2Analysis:Solve this problem by using DFS, since large data set is 100, we can implement it recursively.T原创 2013-12-28 00:31:11 · 1522 阅读 · 0 评论 -
Google Code Jam Notes - Meet And Party - Java
Problem:https://code.google.com/codejam/contest/2929486/dashboard#s=p1Analysis:Calculating the total distance can be divided to calculate the total horizontal distance and total vertic原创 2013-12-31 04:18:28 · 1059 阅读 · 0 评论 -
Google Code Jam Notes - Alien Language - Java
Problem:http://code.google.com/codejam/contest/90101/dashboard#s=p0Analysis:Because L is no more than 15, and also the word is composed of 26 characters. A boolean[15][26] is used to原创 2013-12-28 00:35:33 · 1228 阅读 · 0 评论 -
Google Code Jam Notes - All Your Base - Java
Problem:https://code.google.com/codejam/contest/189252/dashboard#s=p0Analysis:The base is dependent on how many different characters in the string. The first digit has to be 1, and then we ass原创 2013-12-28 00:33:49 · 1480 阅读 · 0 评论 -
Google Code Jam Notes - Captain Hammer - Java
Problem:http://code.google.com/codejam/contest/2845486/dashboard#s=p1Analysis:This is a physics problemV*sinx = 1/2 * g * tV*cosx * t = D=>x = 1/2* arcsin(gD/v^2)原创 2013-12-28 00:28:40 · 1569 阅读 · 1 评论 -
Google Code Jam Notes - Reverse Words - Java
Problem:http://code.google.com/codejam/contest/351101/dashboard#s=p1Analysis:Straightforward, use String.split("\\s") to separate each word.Time complexity: O(n).My sol原创 2013-12-28 00:05:39 · 853 阅读 · 0 评论 -
Google Code Jam Notes - Rotate - Java
Problem:https://code.google.com/codejam/contest/544101/dashboard#s=p0Analysis:The trick for this problem is that you don't need to rotate the table! Just push all the characters to t原创 2013-12-28 00:00:56 · 601 阅读 · 0 评论 -
Google Code Jam Notes - Sudoku Checker - Java
Problem:http://code.google.com/codejam/contest/2929486/dashboard#s=p0Analysis:Use Set to check whether each element is just appearing once either in a line, a row, or a subMatrix. Time原创 2013-12-27 23:36:54 · 1123 阅读 · 0 评论 -
Google Code Jam Notes - Rational Number Tree - Java
Google Code Jam Notes - Rational Number Tree - Java原创 2013-12-28 00:08:06 · 1413 阅读 · 0 评论 -
Google Code Jam Notes - Dragon Maze - Java
You are the prince of Dragon Kingdom and your kingdom is in danger of running out of power. You must find power to save your kingdom and its people. An old legend states that power comes from a place known as Dragon Maze. Dragon Maze appears randomly out o原创 2013-12-28 04:52:21 · 959 阅读 · 0 评论 -
Google Code Jam Notes - Store Credit - Java
Problem:https://code.google.com/codejam/contest/351101/dashboard#s=p0Analysis:Warm up practice, time complexity O(n^2).My solution: (Your opinion is highly appreciated)pack原创 2013-12-27 23:51:03 · 792 阅读 · 0 评论 -
Google Code Jam Notes - Minimum Scalar Product - Java
Problem:http://code.google.com/codejam/contest/32016/dashboard#s=p0Analysis:This is actually a mathematical problem, the fact is if we have two arrays in natural order:(x1, x2, x原创 2013-12-28 00:13:29 · 968 阅读 · 0 评论 -
Google Code Jam Notes - Moist - Java
Problem:http://code.google.com/codejam/contest/2845486/dashboard#s=p0Analysis:There is no need to insert the card in the right position, just calculate how many times it need to inse原创 2013-12-28 00:09:08 · 708 阅读 · 0 评论 -
Google Code Jam Notes - Spaceship Defence - Java
Google Code Jam Notes - Spaceship Defence - Java原创 2013-12-27 23:56:13 · 993 阅读 · 0 评论 -
Google Code Jam Notes - Cross The Maze - Java
Google Code Jam Notes - Cross The Maze - Java原创 2013-12-28 00:18:08 · 1703 阅读 · 0 评论 -
Google Code Jam Notes - File Fix-It - Java
Problem:https://code.google.com/codejam/contest/635101/dashboard#s=p0Analysis:Create a collection for the directives we already have, and create a collection for the directives we ne原创 2013-12-28 00:15:45 · 822 阅读 · 0 评论 -
Google Code Jam Notes - Read Phone Number - Java
Problem:http://code.google.com/codejam/contest/2924486/dashboard#s=p0Analysis:Take your time and simulate each step.Time complexity O(n).My solution: (Your opinio原创 2013-12-28 00:07:00 · 601 阅读 · 0 评论 -
Google Code Jam Notes - Rope Intranet - Java
Problem:http://code.google.com/codejam/contest/619102/dashboard#s=p0Analysis:Sort one side of the end points, and calculate how many end points not in order on the other side.原创 2013-12-28 00:04:21 · 690 阅读 · 0 评论 -
Google Code Jam Notes - Sorting - Java
Problem:http://code.google.com/codejam/contest/2924486/dashboard#s=p2Analysis:package codeJam.google.com;import java.io.BufferedReader;import java.io.FileReader;import java.io.File原创 2013-12-27 23:58:24 · 572 阅读 · 0 评论 -
Google Code Jam Notes - Good Luck - Java
Google Code Jam Notes - Good Luck - Java原创 2014-01-10 03:43:16 · 1006 阅读 · 0 评论