hey guys,
I have the following code :
for (int =0;i<a.size();i++)
{
if(key==a[i])
printf("found");break;
}
Type: Posts; User: krithi
hey guys,
I have the following code :
for (int =0;i<a.size();i++)
{
if(key==a[i])
printf("found");break;
}
1. Reverse words in a string (words are separated by one or more spaces). Now do it in-place.
2. Strip whitespace from a string in-place
Can anyone post more interesting and challenging...
How to count number of 1's in a 32 bit integer (do not loop throught the bits).
thanx
krithi
thanks quzah
love krithi
i donot need any code i need an algorithm
1. You are given an array with integers between 1 and 1,000,000. One integer is in the array twice. How can you determine which one? Can you think of a way to do it using little extra memory.
2....
if anyone knows about the test cases for coke machine can they help me with the toaster problem too?
thanx
if anyone knows about the test cases for coke machine can they help me with the toaster problem too?
thanx
hey guys,
can anyone give me the test cases to test
1. State of the art Micro processor embedded Toaster
2. Microprocessor Embedded Elevator system?
thanx for ur reply how do u remove the loop after u find it
thanx
krithi
how to find a loop in a linked list and how to remove it after u find? possibly in constant space.
thanx
krithi
this should work
for(count=0;count<SIZE;count++)
{
a[count]=rand()%101+1;
b[count]=a[count];
printf("%4d",a[count]);
}