Re: [gcj] Algorithms

2011-12-19 Thread rahul raghavendra
Ur Solution is an application of Depth First Search that searches all the elemnts od the matrix in a recursive manner :) On Tue, Dec 20, 2011 at 11:48 AM, rahul raghavendra wrote: > there are diverse topics such as graph theory , number theory , sorting , > searching , dynamic prog

Re: [gcj] Algorithms

2011-12-19 Thread rahul raghavendra
basic one's that should be known ? > > > On Tue, Dec 20, 2011 at 11:33 AM, rahul raghavendra > wrote: > >> It is always better to know certain standard algorithms. >> So whenever u see a problem and can possibly match it with any standard >> algorithm ..

Re: [gcj] Algorithms

2011-12-19 Thread rahul raghavendra
It is always better to know certain standard algorithms. So whenever u see a problem and can possibly match it with any standard algorithm .. u r in luck and can solve it in the most efficient manner as u already know how to go about it. Whereas for the other case when u hav no idea abt the proble

Re: [gcj] Algorithm for filling water

2011-12-15 Thread rahul raghavendra
I would go for a theta(N ^2) solution ... any time constraints ? On Fri, Dec 16, 2011 at 12:16 PM, vivek dhiman wrote: > Hi all > > Can you suggest what algorithm can be used for such a problem. > > There are voids formed using blocks as shown in example file attached... > > I want to find out th

Re: [gcj] c/c++ IDE and Proffesioal practices

2011-09-11 Thread rahul raghavendra
Hey Jitendra , I dont know what ide's are used by Google and Face book guys , But I use Vim editor . Gcc is typically inbuilt in Linux . To get a hang of Vim , " byte of vim" is a good ebook . On Sun, Sep 11, 2011 at 2:02 PM, jitendra wrote: > Hello friends > I am typically using

Re: [gcj] pr-3

2011-05-09 Thread rahul raghavendra
u can do a lot of stuff with the bitwise operators , u just gotta experiment with it On Tue, May 10, 2011 at 2:21 AM, Morgan Bauer wrote: > 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 thi

Re: [gcj] SubSet Program

2011-05-09 Thread rahul raghavendra
There is a beautiful technique of generating subsets for a set of not more than 20 elements (Why , u'll understand later as u read the code ) . This code will just generate all the subsets of a given set . The sorted condition and other stuff can b done easily . for(int i=0;i20 On Tue,

Re: [gcj] Re: fast and furious

2011-05-08 Thread rahul raghavendra
hey can anyone suggest any good book that contains such kind of questions ... On Mon, May 9, 2011 at 2:58 AM, Vexorian wrote: > > I am a decent programmer and when I started out I too was looking for > those elusive tips and tricks that the top rated programmers know of. True, >

Re: [gcj] problem in soling practise set for round 1,2.

2011-05-06 Thread rahul raghavendra
Start with the basic stuff :- -1) Write simple code to represent graph. -2) Remember and practice heavily the way u code , as it will help u to code faster every time u solve a graph problem -3) Learn basic algo's as satyajit pointed out , especially DFS and BFS . -4) Follow Step 2 for

Re: [gcj] THIRD PROBLEM 2008 ROUND 1A

2011-04-18 Thread rahul raghavendra
Yeah thanks man !! Checked out the link !! On Mon, Apr 18, 2011 at 9:52 PM, Luke Pebody wrote: > "You can't". You'd need a lot of memory and a lot of time to work out the > integer part of this large a value. However, you don't need to work out the > entire integer part. You can, for instance