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
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
```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
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
@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
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.
*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/
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
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 =
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
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
11 matches
Mail list logo