Re: [gcj] Re: Choice of language

2010-11-17 Thread Morgan Bauer
You need to have a deep understanding of when to apply what type of algorithms and data structures. Many have similar behaviors available, but the complexity of each will yield vastly different running times despite their similar interfaces and operations. ~mhb On Wed, Nov 17, 2010 at 2:03 AM, ank

Re: [gcj] pr-3

2011-05-09 Thread Morgan Bauer
XOR is the bread and butter of Symmetric Cryptography. ~mhb On Mon, May 9, 2011 at 4:44 PM, Marcelo Ramires wrote: > I understood how to solve this, but how does one come to this solution ? > > If the xor of all numbers is zero, you can pick any candy, and the xor to > this number is going to be

Re: [gcj] Thank you

2011-05-09 Thread Morgan Bauer
Mortal Kombat. Goro is a character with four arms. ~mhb On Tue, May 10, 2011 at 1:36 AM, Nzeyimana Antoine wrote: > I wonder why his name was choosen to be Goro. > Anyway, he isn't that bad, since his worst case average run time is > "n"(if he always freeze any number that gets into the right pos

Re: [gcj] Re: fast and furious

2011-05-10 Thread Morgan Bauer
As opposed to those who are really furious? ~mhb On May 10, 2011 2:59 AM, "vivek dhiman" wrote: > And what about those who are really fast ? > > -- > You received this message because you are subscribed to the Google Groups "google-codejam" group. > To post to this group, send email to google-code

Re: [gcj] Re: How to add numbers given in a string WITHOUT using any loop and recursion

2011-12-28 Thread Morgan Bauer
There is no way. This is not possible. You must loop, explicitly with a loop construct or implicitly with recursion. hth, ~mhb 2011/12/28 Jérémie Marguerie > Do you really think there is a solution without a loop? :-) > > -- > Jérémie Marguerie > Le 28 déc. 2011 20:25, "Mayank roy" a écrit : >

Re: [gcj] Efficient algorithm to compare date range

2012-01-10 Thread Morgan Bauer
Map dates to integers and use a range tree. ~mhb On Jan 10, 2012 11:31 PM, "varun gupta" wrote: > Hi, > > Lets say user is entering date-range as Start Date and End Date. > > Start DateEnd Date > 15/Jan/201212 20/Jan/2012 > 25/Jan/201212 28/Jan/2012 > 15/Feb/201212 18/Feb

Re: [gcj] Competing the Qualifying round in different time intervals...

2012-04-13 Thread Morgan Bauer
You can log in and out as much as you want. You have the whole period available. ~mhb On Apr 13, 2012 10:07 AM, "dhrumin" wrote: > Hi, > Can we solve problems in different time intervals. For example, I > solve a problem and then submit the output. Then I log out and solve > the next problem aft

Re: [gcj] Hints for Round 1C

2012-05-09 Thread Morgan Bauer
~mhb On May 9, 2012 2:48 AM, "Luke Pebody" wrote: > Problem C is the Longest Common Subsequence problem. It has a well known > easy to understand solution: > > Let A1A2...An and B1B2...Bm be two sequences. Define f(i,j) for 0<=i<=n > and 0<=j<=m to be the length of the longest common subsequence

Re: [gcj] Compilation error for submission (ACM-ICPC Live Archive)

2012-12-05 Thread Morgan Bauer
Exactly what it says? Your file is named Main.java, and the compiler want's it to be named Bartjens.java. ~mhb On Wed, Dec 5, 2012 at 3:38 PM, Amir Hossein Sharifzadeh wrote: > Is there anyone who has submitted problems in uva onlinejudge or ACM-ICPC > Live Archive? > I wrote a problem of the AC

Re: [gcj] Can you use precomputed resources even when they don't fit in source code?

2013-04-15 Thread Morgan Bauer
>From the contest analysis: "Finally, if you use precomputation in your solution, remember that you are required to provide us not only with the code that you actually used to solve the problem (containing the precomputed values), but also the code that you used for precomputation." ~mhb On Mon