Re: [algogeeks] Re: Given a String with unnecessary spaces, compact it in place

2011-10-13 Thread janani thiru
This solution doesn't work. It prints a blank string. I think because sometimes the condition becomes true only when a space is encountered. After which when we shift the value what happens to the value at the position where we are shifting from. It will still contain the char. This would be wron

[algogeeks] How to search for the presence of a file in Linux?

2011-01-06 Thread janani thiru
I have written a program to search for a file in C in UNIX. But it doesn't loop recursively if the starting path is "/" Could it be because of permissions? But I am the root while executing the program and I have also changed the permissions of all the files in the folder correspondingly. Please h

[algogeeks] How to search for the presence of a file in Linux?

2011-01-06 Thread janani thiru
I have written a program to search for a file in C in UNIX. But it doesn't loop recursively if the starting path is "/" Could it be because of permissions? But I am the root while executing the program and I have also changed the permissions of all the files in the folder correspondingly. Please h

Re: [algogeeks] Brain Teaser

2010-11-12 Thread janani thiru
*One possible solution is: |4|6|3|5| |2|8|1|7| *Regards, Janani On Thu, Nov 11, 2010 at 1:26 PM, Amod wrote: > We have a rectangle > It is divided in eight parts by three vertical and one horizontal line > so that there are 8 chambers. > Now we have numbers from 1-8 to be filled in these chamb

[algogeeks] Reading large numbers?

2010-08-16 Thread janani thiru
How can I read a file which has 10^9 characters or more efficiently? -- Janani T -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to