Pages

Monday, October 5, 2009

Programming Challenges- the Programming Contest Training Manual

Programming Challenges- the Programming Contest Training Manual by Steven S.Skiena and Miguel A.Revilla.

click here to download

Java 2-The Complete Reference (fifth edition)-Herbert Schildt

 Java 2-The Complete Reference (fifth edition)-Herbert Schildt........another useful book to learn JAVA language.

click here to download

UVA Problem#100

Question:

Solution:
1. take input i, j. let x=i, y=j. 
2. Generate the series.
for(a=i; a<=j; a++){ 
n=a; 
count=1; 
while(n!=1){
if(n%2==0){ 
n = n/2; 
}
else{ 
n = 3*n+1; 
count++; 
}  

3. find the max count value by 
if(maxcount < count){ 
maxcount=count; 

JAVA How to Program (7th Edition) by Deitel and Deitel

A complete java book full of examples. "JAVA How to Program (7th Edition) by Deitel and Deitel".

click here to download