[algogeeks] [Amazon]

2012-07-20 Thread Sakshi Agrawal
How will you search an element in sorted 3D Array ? ( Sorted in all the 3 directions ) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email

Re: [algogeeks] Crawler/perl/php/database help

2012-07-20 Thread Amit Jain
Hi Is your crawler script in python or shell script? Thanks Amit Jain On Fri, Jul 20, 2012 at 6:02 AM, Nandita Raman nandita.rama...@gmail.comwrote: Hello, I am working on a unix machine. and i have the crawler script with me. The task i need to do is, update my database (by creating a

Re: [algogeeks] Programming Problem

2012-07-20 Thread piyush khanna
@ashish jain :then what for aaab.. From: ashish jain ashishjainco...@gmail.com To: algogeeks@googlegroups.com Sent: Thursday, July 19, 2012 9:48 PM Subject: Re: [algogeeks] Programming Problem if from the string s.. a binary search tree (with higher value

[algogeeks] Re: How to get First D digits of a pow(N,N)

2012-07-20 Thread Amit Jain
Any thought? On Tue, May 15, 2012 at 11:46 AM, Amit Jain aj201...@gmail.com wrote: Hi All How can we get first D digits of N to the power N ? P.S. N is of order 10^18 (^ : Power) and D = N Thanks Amit Jain -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] Programming Problem

2012-07-20 Thread ashish jain
@piyus khanna--- while forming a BST with aaab and removing duplicates if a charcter occur once .. so for aaab first make a node for 'a'. and ignore next two a's as they are already on the BST. next is 'b'. make 'b' as root and 'a' on the right side.. and use inorder parsing to get 'ba' as the

Re: [algogeeks] Programming Problem

2012-07-20 Thread algo bard
Can't we simply hash all the characters in an array and then print the occurrence of each character in lexicographically decreasing order? This way, it'll have all unique characters, will be the longest possible string and will be derivable from s. int hash[26] = {0}; hash all inputs using :-

Re: [algogeeks] [Amazon]

2012-07-20 Thread algo bard
Compare the element with the first([0][0]) and the last element([n-1][n-1]) of each 2D array to pin down the 2D array it *might* be present in. After that you can follow this approach : http://www.geeksforgeeks.org/archives/11337 If it's not present in that 2D, move on and search for the next

Re: [algogeeks]

2012-07-20 Thread Puneet Gautam
@sanjay: what about Bus error..? On 7/18/12, Sanjay Rajpal sanjay.raj...@live.in wrote: Segmentation fault occurs when you try to access a memory which doesn't belong to your program. You are trying to cast a memory location of one byte to 4 byte(assuming size of long int to be 4). It is

[algogeeks] pls guy im need of a ebook named Data Structures and algorithms made easy details given below....

2012-07-20 Thread sarath prasath
Book: Data Structures And Algorithms Made Easy: Data Structure And Algorithmic Puzzles Author: Narasimha Karumanchi ISBN: 0615459811 ISBN-13: 9780615459813, 978-0615459813 Binding: Paperback Publishing Date: 2011 Publisher: CareerMonk Publications Edition: 2ndEdition Number of Pages: 484

[algogeeks] return timestamp of files in perl

2012-07-20 Thread Nandita Raman
Hello, i am working on a code that has to return timestanp and size of the file. the code i am using - my $mtime = (stat($file))[9]; but when i execute it in the cmd line, it says - Use of uninitialized value in stat at /usr/lib/perl5/5.8.8/File/stat.pm line 49 I am very new to perl

Re: [algogeeks] Crawler/perl/php/database help

2012-07-20 Thread Nandita Raman
i am using perl crawler script. On Thu, Jul 19, 2012 at 11:11 PM, Amit Jain aj201...@gmail.com wrote: Hi Is your crawler script in python or shell script? Thanks Amit Jain On Fri, Jul 20, 2012 at 6:02 AM, Nandita Raman nandita.rama...@gmail.comwrote: Hello, I am working on a unix

Re: [algogeeks] [Amazon]

2012-07-20 Thread SHOBHIT GUPTA
@algo bard : Why dont you use binary search in your first step (while comparing first and last element of 2d array) On Fri, Jul 20, 2012 at 4:25 PM, algo bard algo.b...@gmail.com wrote: Compare the element with the first([0][0]) and the last element([n-1][n-1]) of each 2D array to pin down the

Re: [algogeeks] pls guy im need of a ebook named Data Structures and algorithms made easy details given below....

2012-07-20 Thread suresh kumar mahawar
On Fri, Jul 20, 2012 at 11:02 PM, sarath prasath prasathsar...@gmail.comwrote: Book: Data Structures And Algorithms Made Easy: Data Structure And Algorithmic Puzzles Author: Narasimha Karumanchi ISBN: 0615459811 ISBN-13: 9780615459813, 978-0615459813 Binding: Paperback Publishing Date:

Re: [algogeeks] pls guy im need of a ebook named Data Structures and algorithms made easy details given below....

2012-07-20 Thread saurabh singh
Above users banned for violating group policy. NO MORE POSTS ON THIS THREAD. Saurabh Singh B.Tech (Computer Science) MNNIT blog:geekinessthecoolway.blogspot.com On Fri, Jul 20, 2012 at 11:39 PM, suresh kumar mahawar suresh.mahawar1...@gmail.com wrote: On Fri, Jul 20, 2012 at 11:02 PM,

Re: [algogeeks] Crawler/perl/php/database help

2012-07-20 Thread suresh kumar mahawar
On Sat, Jul 21, 2012 at 12:19 AM, Nandita Raman nandita.rama...@gmail.comwrote: i am using perl crawler script. On Thu, Jul 19, 2012 at 11:11 PM, Amit Jain aj201...@gmail.com wrote: Hi Is your crawler script in python or shell script? Thanks Amit Jain On Fri, Jul 20, 2012 at 6:02 AM,