Which statement gets affected when i++ is changed to ++i?
(A) i = 20; i++;
(B) for (i = 0; i20; i++) { }
(C) a = i++;
(D) while (i++ = 20) cout i;
Ans: A
Why ???
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email
Q)Given a class named Book, which of the following is not a valid
constructor?
(A) Book ( ) { }
(B) Book ( Book b) { }
(C) Book ( Book b) { }
(D) Book (char* author, char* title) { }
Ans:B
how plz give reason..
--
You received this message because you are subscribed to the Google Groups
QRead the following letter-number sequence carefully and answer the
question given below:
7 3 P N 4 2 6 3 1 M L B T 4 5 G A C D F J K 1 9 8 2
Q.1) If the first fifteen elements of the above sequence is written in the
reverse order which of the
following elements will be sixth to the left of
void main()
{
int a=10,b=20;
char x=1,y=0;
if(a,b,x,y)
{
printf(EXAM);
}
}
o/p XAM
how it is coming plz help me,..
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to
findset(v[x].start)
findset(v[x].end)\n;
}
}
*return* ans;}
};
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group
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.
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
You received this message because you
.
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
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.
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
You received this message because you are subscribed
@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.
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
You
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.
--
Anuj
#includestdio.h
#includeconio.h
int main()
{
char a[]=sunstroke;
char *p=coldwave;
printf(%d,sizeof(a));
printf(\n);
printf(%d,sizeof(p));
getch();
return 0;
}
output 10 4
how 10 is coming???
--
You received this message because you are subscribed to the Google
#includestdio.h
#includeconio.h
int main()
{
int arr[5];
printf(%d %d\n,sizeof(arr),sizeof(arr));
getch();
return 0;
}
o/p 204
anybody can tell me how 20 is coming plzz
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post
Hi frnds..
Any one can help me in this Application ..Its Urgent Plzz.
QCreate a web application using any technology that accepts a set of
strings, detects the language of the strings and converts it to English. You
may use Google translation API.
--
You received this message because you are
some body can give me code of MD5
PLZ its Urgent ..
--
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
some body can give me code of MD5
PLZ its Urgent ..
--
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
http://www.codechef.com/problems/RESN02/
someone please tell me how to approach this problem
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group
to algoge...@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Anuj Kumar
Third Year Undergraduate,
Dept
...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group
we use epsilon in that case as the float values are not exact there is
an approximation.
On 1/2/11, Anuj Kumar anuj.bhambh...@gmail.com wrote:
he means ==
On 1/2/11, Dave dave_and_da...@juno.com wrote:
@Saunsh: Why do you say that we cannot use or on floats? Of course
we can!
Dave
this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email
.
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send
how can i use qsort a structure.
please give me the code if possibe
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to
#includestdio.h
int main()
{
printf(anuj,kumar);
return 0;
}
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks
thanks
On 10/21/10, juver++ avpostni...@gmail.com wrote:
Please have a look at this page:
http://www.informatik.uni-ulm.de/acm/Locals/2007/input/.
It contains input data for the problem.
On 21 окт, 00:39, ANUJ KUMAR kumar.anuj...@gmail.com wrote:
i am getting wa forhttps://www.spoj.pl
please give me its output file also so that i can check mine
On 10/21/10, ANUJ KUMAR kumar.anuj...@gmail.com wrote:
thanks
On 10/21/10, juver++ avpostni...@gmail.com wrote:
Please have a look at this page:
http://www.informatik.uni-ulm.de/acm/Locals/2007/input/.
It contains input data
i am getting wa for https://www.spoj.pl/problems/FREQUENT/
here is my code i have used segment trees it would be great if someone
could give me a test case for which my code gives wa.
Thanks in advance.
#includeiostream
#includevector
#includefstream
#includemath.h
i am getting wa for http://www.spoj.pl/problems/BMJ/
My logic is that i have seen that the numbers in Willi's Coordinate
System vertically downwards from 1 are following a pattern and i
have stored that pattern in array ar and the index of the array for
each value of Willi's Coordinate System is
what is the maximum size an array can have in spoj in c++?
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to
56
On Tue, Oct 12, 2010 at 5:09 PM, divya sweetdivya@gmail.com wrote:
Given a sorted array A with 8 integers.We want to have 2 sorted arrays
B(with 5 integers)
And C(with 3 integers) such that merging B and C would result in A.
How many such pairs exists
--
You received this message
Please explain me how to implement kmp in 2d pattern matching
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to
Which is a better measure for sorting
1)no of elements on their rank position
2)longest increasing subsequence
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from
(2^7-1)^23
On Tue, Jun 22, 2010 at 8:22 PM, Aarthi Thangamani
aarthi.thangam...@gmail.com wrote:
Given 23 chocolates and there are 7 kids. How many ways are there to spilt
the chocolates among the 7 kids? All of the chocolates must be distributed
and it can happen that some kids do not get
Please send me a c++ code for a compressed trie.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to
-ar[x].value;
}
}
if(knap[0][tt]0)
ans.push_back(ar[0].index);
On Tue, Jun 22, 2010 at 7:47 AM, ANUJ KUMAR kumar.anuj...@gmail.com wrote:
How can i maintain the list of objects selected in the knapsack problem.
--
You received this message because you
, ANUJ KUMAR kumar.anuj...@gmail.com
wrote:
http://www.spoj.pl/problems/HAN01/
i implemented it using stack but am getting tle someone please help
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge
please post the solution to
http://www.spoj.pl/problems/HAN01/
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to
as their
first greater disk=2
now the largest disk is on peg = 2 which is not the left peg so n
comes out to be 2 while its given on wiki that
. Since n is odd(n=3), it is one peg to the right, i.e. on the left peg.
please help
ThanksRegards
Anuj Kumar
On Tue, Jun 15, 2010 at 9:42 PM, Jitendra Kushwaha
please explain what happens when we get a different bit from the previous one.
On Wed, Jun 16, 2010 at 4:53 PM, ANUJ KUMAR kumar.anuj...@gmail.com wrote:
I am not getting how you place a move when you get a bit that is
different from previous one
# A bit with a different value
how can we print the reconstructed configuration of the towers after k
steps in towers of hanoi problem in O(1) time.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To
http://www.spoj.pl/problems/HAN01/
i implemented it using stack but am getting tle someone please help
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this
for a particular query it will be O(log n+k).Where k is the no. of
elements to be reported.
On Wed, Mar 31, 2010 at 11:54 PM, BlackdiamonD patidarc...@gmail.com wrote:
Binary Indexed Trees or Segment Interval trees. building them also it will
take O(n log(n))
..i feel for a particular query
We can make a query tree and then each query will take O(log n+k) time.
On Wed, Mar 31, 2010 at 12:48 PM, Anil Kishore anil.dai...@gmail.com wrote:
What do you mean by points ? .. Are you referring to the integer values
stored ?
.
1.) If the question is, given N integers.. and given x1 and
42 matches
Mail list logo