[algogeeks] Clock Angle Problem

2011-02-21 Thread bittu
Given an analog clock, it's hour hand and minute hand divide the clock in two sectors. Write a function to return where the second hand is located ? in larger section or smaller? Given time in format - hh:mm:ss Handle special cases carefully. Its Interesting to see how many special cases

[algogeeks] how to start learning scripting

2011-02-21 Thread phoenix_feathers
Hey all, I am totally new to scripting.Can you please guide me as to how one has to effectively start learning anything in scripting? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] HOT BABES

2011-02-21 Thread SUNITHA BUSETTY
```ONLY HOT VIDEOS FOR YOUTH HOT VIDEOS http://sexy-rainsongs.blogspot.com/ FUNNY VIDEOS http://sexy-rainsongs.blogspot.com/p/funny-video.html TELUGU FUNNY VIDEOS

[algogeeks] Antipodal points

2011-02-21 Thread Kunal Patil
Given N points on a circle, centered at the origin, design an algorithm that determines whether there are two points that are antipodal, i.e., the line connecting the two points goes through the origin. Your algorithm should run in time proportional to N log N. My logic is : 1) Sort the given

[algogeeks] Re: Antipodal points

2011-02-21 Thread Dave
@Kunal. Step 3 is inadequate. If the search in step 2 returns true, then you still have to check to see if the y-coordinates are negatives of each other. But you really don't have to do a binary search in step 2; you can search from both ends of the array, as follows. 1. Sort the points into

[algogeeks] UVA problem

2011-02-21 Thread rgap
Hi, I need help with this problem http://uva.onlinejudge.org/index.php?option=com_onlinejudgeItemid=8page=show_problemproblem=38 -- 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.

Re: [algogeeks] HOT BABES

2011-02-21 Thread D.N.Vishwakarma@IITR
*What type of this algorithm ? Dynamic programming or heuristic approach? * On Mon, Feb 21, 2011 at 10:41 PM, SUNITHA BUSETTY sunitha.buse...@gmail.com wrote: ```ONLY HOT VIDEOS FOR YOUTH HOT VIDEOS http://sexy-rainsongs.blogspot.com/

Re: [algogeeks] UVA problem

2011-02-21 Thread sunny agrawal
as there are only 6 possibilities, i think this will do BCG BGC GCB GBC CBG CGB for each find no of moves, and print min On Tue, Feb 22, 2011 at 2:51 AM, rgap rgap...@gmail.com wrote: Hi, I need help with this problem

[algogeeks] Re: Which doors will be open?

2011-02-21 Thread Sathish Kumar
Thats correct answer. I just wrote a simple JavaScript to find it. var prisons=new Array(101); for(var i=0; iprisons.length; i++){ prisons[i]=false; } for(var i=1; i=100; i++){ for(var j=1; j=100; j++){ if(i%j == 0){ prisons[i]= !prisons[i]; } } } var res =

[algogeeks] How to identify what is stored in union in c language

2011-02-21 Thread shiva
I have an union with following members union data { int age; char grade; }var; now after some operation which assign value to var(it can assign it either age or grade), is there any way i can identify whether var contain age or grade now. Thanks for the comments.. -- You received this message

Re: [algogeeks] How to identify what is stored in union in c language

2011-02-21 Thread Rajiv Podar
Hi Shiva, There is no as such way to know what type of value is stored in the Union (as per my knowledge) But you can try the following code in order to keep track. enum { INT, FLOAT, CHAR } uType; union UserData { uType m_dataType; int m_intValue; float m_floatValue; char