Re: [algogeeks] A Coding Problem

2012-07-16 Thread Amit Jain
+1

On Sat, Jul 14, 2012 at 8:14 PM, saurabh singh saurab...@gmail.com wrote:

 its from a running contest i believe.This is against the group policy as
 well as against the ethics of programmers. The author of this post is
 banned permanently from algogeeks. Kindly no more posts on this thread till
 16th July (the date mentioned as end of contest in the given link).
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT
 blog:geekinessthecoolway.blogspot.com



 On Sat, Jul 14, 2012 at 2:36 PM, Gobind Kumar Hembram 
 gobind@gmail.com wrote:


 Please visit this 
 linkhttp://www.techgig.com/codehire/ZSAssociates/problem/35.And
 help me in  solving this.
 --
 Thanks  Regards
 Gobind Kumar Hembram
 Contact no.-+91867450


  --
 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 to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 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 to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
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 to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: microsoft

2012-07-16 Thread Amit Jain
No It will not.

For negative number, it will fail.

On Sun, Jul 15, 2012 at 11:45 PM, Tanuj Makkar
tanujmakkar.de...@gmail.comwrote:

 double round(double num)
 { return (int)(num+0.5)
 }
 will it work all the time?
 ..
 didnt get itcan anyone explain it.thnx in advance.

 On Friday, 26 August 2011 21:58:05 UTC+5:30, rahul sharma wrote:

 hi guys...microsoft is coming to our campus..plz nyone tell their
 recruitment procedure..n give me their previous xams question if nyone
 has...but please tell me their selection procedure n
 roundscuming after 2 days.plz reply soon.n tell me the
 subjects to crack microsoft.nyon having info reply fast
 plz..

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/mWeduVanassJ.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
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 to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: microsoft

2012-07-16 Thread Tanuj Makkar
thnx amit.jst asked a stupid quesiton:)

On Mon, Jul 16, 2012 at 11:55 AM, Amit Jain aj201...@gmail.com wrote:

 No It will not.

 For negative number, it will fail.

 On Sun, Jul 15, 2012 at 11:45 PM, Tanuj Makkar 
 tanujmakkar.de...@gmail.com wrote:

 double round(double num)
 { return (int)(num+0.5)
 }
 will it work all the time?
 ..
 didnt get itcan anyone explain it.thnx in advance.

 On Friday, 26 August 2011 21:58:05 UTC+5:30, rahul sharma wrote:

 hi guys...microsoft is coming to our campus..plz nyone tell their
 recruitment procedure..n give me their previous xams question if nyone
 has...but please tell me their selection procedure n
 roundscuming after 2 days.plz reply soon.n tell me the
 subjects to crack microsoft.nyon having info reply fast
 plz..

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/mWeduVanassJ.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 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 to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
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 to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Need Help with PHP/HTML

2012-07-16 Thread Nandita Raman
Hello,

I am working on PHP/HTML/ XML-RPC.

I have a website, where one link shows the list of files as checkboxes and
a submit button below that.

I am stuck at point where when submit button is clicked, it has to go to
another .php page and execute whatever is there in that .php file.


Form intput type= method =post = I have tried and does not seem like
its working.

I would really appreciate any thoughts/inputs/help with this!

Thanks!

-- 

Regards,
Nandita

-- 
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 to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Need Help with PHP/HTML

2012-07-16 Thread Vandana Bachani
Hi,
You need to correct ur form tag. Try:
form name=somename id=someid method=post action=theotherfile.php

Thanks,
Vandana

On Mon, Jul 16, 2012 at 12:42 PM, Nandita Raman
nandita.rama...@gmail.comwrote:

 Hello,

 I am working on PHP/HTML/ XML-RPC.

 I have a website, where one link shows the list of files as checkboxes and
 a submit button below that.

 I am stuck at point where when submit button is clicked, it has to go to
 another .php page and execute whatever is there in that .php file.


 Form intput type= method =post = I have tried and does not seem
 like its working.

 I would really appreciate any thoughts/inputs/help with this!

 Thanks!

 --

 Regards,
 Nandita

  --
 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 to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Vandana Bachani
Graduate Student, MSCE
Computer Science  Engineering Department
Texas AM University, College Station

-- 
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 to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Need Help with PHP/HTML

2012-07-16 Thread Piyush
connect ur form with the file you want to get redirected to by:

form method=POST action=NAME_OF_FILE.php
 input type=submit/
/form

-- 
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 to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Appropriate data structure

2012-07-16 Thread Tushar
can you please elaborate on usage of stack to do it in O(1)?

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/8jTvBVdzsmYJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Remove duplicates from min-heap.

2012-07-16 Thread Guneesh Paul Singh
yaar i can think of only 2 methods for this

1. O(nlogn) o(n) sol
traverse the heap...and hash the elements..if it exist then delete it

2.make another heap but transfering elements from 1st to 2nd heap...if the
element is equal to the last inserted element then discard it

-- 
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 to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Remove duplicates from min-heap.

2012-07-16 Thread Dave
@Navin: A sorted array is a heap. So use the second half of a heap sort 
algorithm to produce the array in sorted order. You can store the sorted 
array backwards in the original array. Then reverse the array and squeeze 
out the duplicates. O(n log n).
 
Dave

On Saturday, July 14, 2012 3:28:29 PM UTC-5, Navin Kumar wrote:

 Remove duplicates from a min-heap.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/0aCpM-WSME0J.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.