blackpepper
BAN USERFrom Syracuse, NY.
while inserting in hash, if u find a pair whose sum is equal to given sum,
then reverse the pair and insert it again into hashtable, to get exact no. of pairs..as said by THE GREAT ONE.
1 / ((1/2) + (1/10) + (1/20)) = 20/13
- blackpepper February 28, 2008it should be
Sum(a to b) = Sum(1 to b) - sum(1 to (a -1))
= b(b+1)/2 - ((a-1)(a/2))
Server.Transfer is used to End the current webform and begin executing a new webform. This method works only when navigating to a Web Forms page (.aspx)
Server.Execute is used to begin executing a new webform while still displaying the current web form. The contents of both forms are combined. This method works only when navigating to a webform page(.aspx)
First ask how is he handicapped..i mean..he cant walk..or has only one hand..or what? Is he having a wheel chair?
- blackpepper February 25, 2008C this link for C memory layout:
www.cse.ucsc.edu/classes/cmps012b/Spring97/Lecture06/sld003.htm
IN case of C++, Static, Heap, Stack
Static – Live for the duration of life of program
Heap – Designers discretion
Stack - Till in scope
7 is correct answer...
- blackpepper February 25, 2008I got the same idea of that of Khexa..I think it works.. :-)
- blackpepper February 24, 2008floor(n/5) + floor(n/25) + floor(n/125) + ... + floor(n/5^n) + ...
The floor function means round down to the nearest integer.
For example, let's take 5!, or n = 5.
floor(5/5) = floor(1) = 1.
So, 5! ends in 1 zero.
For example: if we want to know the no. of zeros in 100!,
floor(100/5)+floor(100/25) = 20 + 4 = 24.
So, 100! consists of 24 zeros.
that is usually done using AJAX I guess...
- blackpepper February 28, 2008