@yogesh: Thanks a lot for the explaination. Good one indeed. Can you plz
tell me y the compiler says lvalue required for the statement
a++ when a is an lvalue??
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email
If there are two LANS, lan1 and lan2, both lans can make use of same
addresses.
however lan1 and lan2 must make use of NAT to comminicate with each other.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to
In any C program,
int main(){
char a[100];
foo(a);
printf(%d, sizeof(a));
}
foo(char *s){
printf(%d, sizeof(a));
}
In main sizeof a is 100, in foo it is 4. why??
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send
In main, any array say char a[200],
a refers to an r value or an lvalue??
--
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
what does printf return??
--
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,
ok but y does the compiler say lvalue required if you perform a++??
--
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
ok thank q :)
On Sat, Sep 3, 2011 at 6:51 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote:
The number of characters printed.
On Sat, Sep 3, 2011 at 6:45 PM, priya ramesh
love.for.programm...@gmail.com wrote:
what does printf return??
--
You received this message because you
ok i got this point.
Plz answer this,
s is a pointer in foo and a is also a constant pointer in main. (a is passed
to foo)
However, in main a is treated as an rvalue and in s the same pointer is an
lvalue. why??
--
You received this message because you are subscribed to the Google Groups
use hashing
--
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
if it is an l value, the compiler should say
cannot modify const value
instead it says
l value required
This statement proves that a is an r value in main. right??
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send
Allocation and deallocation of activation records is always done using a
stack
(LIFO) structure. True or false??
--
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
the following is a function which computes the double tree of a given tree.
here is the description of a double tree.
doubleTree()
For each node in a binary search tree, create a new duplicate node, and
insert the duplicate as the left child of the
original node. The resulting tree should still
very good question! Thanks for posting 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.
Is there any difference between a non recursive call and a recursive call in
C??
I'm asking about parameter passing and differences in the stack allocation
for non recursive call and a recursive call??
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks
A certain number of men can finish a piece of work in 10 days. If however
there were 10 men less it will take 10 days more for the work to be
finished. How
many men were there originally?
(a) 110 men
(b) 130 men
(c) 100 men
(d) none of these
--
You received this message because you are
i too got the same ans.
--
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,
the answer is 130 itseems. i too got 20
--
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
oh thanks :) It's given as 10 only. Printing mistake i guess.
--
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
guys plz post inmobi's recruitment experience!
--
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
Out of two thirds of the total number of basket -ball matches, a team has
won 17 matches and lost 3 of them. What is the maximum number of matches
that the team can lose and still win three -fourths of the total number of
matches, if it is true that no match can end in a tie? [1] 4 [2] 6 [3] 5
@dave: thanks! I solved similarly Was a little confused when i got fraction.
Can you plz suggest a good book to improve quant??
--
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
is the ans 16??
--
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
try substituting values for a.
for a=1, 2 it's 50
for a=3, 4, 5, 6, 7... it's less than 50
when a approaches 48, 49... it's 50
the max value of a that satisfies the condition is 47.
p= total numbers between 3 and 47 (inclusive of 3 and 47)
/
total numbers between 1
The compiler will distinguish between char n[] and char * in which part of
the prog??
1. In actual parameters of function arguments
2. In formal parameters of function arguments
3. in both
generally after 1st online technical round what is the cut off for amazon??
--
You received this message
even i thought it's both. Plz correct me if i'm wrong folks!
--
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
it is not an error.
check this code: I compiled it
#includeiostream
using namespace std;
class X
{
public:
X()
{
}
};
main(){
}
X fun()
{
return X();
}
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to
A data structure is required for storing a set of integers such that each of
the following operations can be done in (log n) time, where n is the number
of elements in the set. Deletion of the smallest element Insertion of an
element if it is not already present in the set Which of the following
so which is the right option??
--
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
how abt goimg with brute force?? check starting from first character if
first 2 chars frm a palin, then chck if first 3 form a palin... continue
until the end of string.
Now starting from 2nd char, do the same.
keep a var max to store the max value.
--
You received this message because you
@tasvinder: thank you so much for the info :) :) Thanks a lot!
@arjoo: It hasn't been decided yet
--
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,
a wonderful explaination divye!! thank you so much :) :)
--
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
the answer is 1
sum=1
--
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,
+1 sagar!
--
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
if a and b are not equal a^b will evaluate to a non zero value.
If they are equal, a^b will be 0 and ab will be a non zero value.
In either case, the value is 0
@Aditya: +1. It'll become 0 only if a=b=0 or if the MSB is 1 and rest all
bits are 0 (a=b in both cases)
--
You received this
yes.
--
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
why will the objects have same addresses if the size is 0??
--
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
@sarvesh plz upload that book
--
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
on what subjects are questions asked in netapp?? (Both written and tech
interview)
Plz help
--
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
@sanjay: Why doesn't your algo work if the nos are not in the range 1-n??
--
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
thanks a lot :) :)
--
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
Hash in the dictionary for the first letter in the string. Check if any word
in the dictionary beginning with this letter is a substring of the given
string. If yes and if the substring forms the initial part of the string,
tokenize it. Continue the process with the next word.
--
You received
acc to your logic,
it should be 1^2^3^4^5^5^6
which is 1^2^3^4^6 (5^5 is zero)
now when you XOR this with the given array,
the result will again be 0.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to
Oh yes yes i got it now!! I missed that point!
--
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
1. c
2. d
3. no idea
4. b
5.b
--
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
5th is option 1 sorry!
--
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,
(root(2)-1)*r???
--
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
A 1 inch diameter coin is thrown on a table covered with a grid of lines two
inches apart. What is the probability the coin lands in a square without
touching any of the lines of the grid?
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To
@saurabh: thanks a lot! isn't DBMS important??
--
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
why this sentence??
3/4 of
the time the coin will touch a grid line??
--
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
it can remove methods defined in base class as well?? By overriding a
virtual base class func??
--
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,
why isn't the size of empty class not equal to zero??
--
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
A B and C have chance of failure of 20%, 30% and 40%. To activate the
machine at least two should be active. What is the probability that machine
will be active?
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email
@romil: how did you solve this??
--
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
i got 74.8% (machine works)
--
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
A mistake from my side as well!
Got 78.8% :)
--
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
@rohith thanks!
--
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
if a number is divided by 935 remainder is 69. if same no. is divided by 38,
what will be the remainder?
--
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
i got the same answer. the ans is supposed to be 29
--
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
what is the probability of having b'days of 2 persons on the same day in a
gathering of 50 persons?
--
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
nothing is specified. I guess it's 365
--
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
i solved it the same way you solved it. Took the same exmpl too :)
--
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
I don't have coreman. If you have an e book can you plz upload 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
the answer is given as 13... even i got root(146)
--
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
A car is traveling at a uniform speed.The driver sees a milestone showing a
2-digit number. After traveling for an hour the driver sees another
milestone with the same digits in reverse order.After another hour the
driver sees another milestone containing the same two digits. What is the
average
noon
+ moon
+ soon
= june
find the values of the alphabets to satisfy this equation
--
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
@sagar, aditya: +100 superb explaination!!
--
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
@bhavani : i too got a similar answer :) I guess it has several answers!
--
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
yup it's correct now :) :)
--
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
2442
+1442
+5442
--
9326
2442
5442
1442
9326
-
other answers :)
--
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
me too :P
On Thu, Aug 18, 2011 at 12:19 AM, Bhavani Pradeep dbprad...@gmail.comwrote:
oh yeah... just stopped thinking after finding one solution :P
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to
@sandeep : thank you :)
--
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,
Plz send good c++ interview questions/resources.
--
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
Why should the column size be mandatorily passed to a function which expects
a multi dimensional array
int arr (int marray[][5], int rows);
int arr (int marray[][], int rows, int cols);
1st is valid whereas second is invalid. why??
--
You received this message because you are subscribed to the
are these algos optimal???
*Algo 1*:
no_min_max =-1
min_row= max_row= -1
for(i=0; in; i++)
{
for(j=0; jn; j++){
find min, max
}
if(minprev_min max prev_max){
no_min_max=i;
break;
}
Do anyone of you have c++ MCQ book?? Perhaps test your c++ skills by
kanetkar?? I'm not able to find good resources on net. Plz help by snding e
books or docs
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email
@sagar: Can you please upload important c++ docs?? I have no idea what to
emphasize on in c++ and my placements starting in sometime. Plz help
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to
You are given a dictionary of all valid words. You have the following 3
operations permitted on a word: delete a character, insert a character,
replace a character. Now given two words - word1 and word2 - find the
minimum number of steps required to convert word1 to word2. (one operation
counts as
@mitra: can you plz mail the e book if you have??
--
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
@gopi: Each word is being accessed thrice.
1. reverse string
2. set pointers to beginning n end of string
3. reverse the word.
If this is the came is the complexity O(n)??
It's a very good algo nevertheless :)
On Mon, Aug 15, 2011 at 9:16 PM, *$* gopi.komand...@gmail.com wrote:
method 1:
79 matches
Mail list logo