BeginnerInProgrammingWorld
BAN USER
- 0of 0 votes
AnswersSpecial Property Numbers:
- BeginnerInProgrammingWorld in United States
Eg--> You have a number 8987656 or 4565676
The difference between consecutive numbers is either 1 or -1.
You are given a range, you need to print the numbers with this special property.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersThis is on Additive Number Property
- BeginnerInProgrammingWorld in United States
Additive Number examples:
123459 (1+2=3, 4+5=9)
314538 (3+1=4, 5+3=8)
122436 (12+24=36)
You are given a range, you need to print all the additive numbers.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersYou are given a 2-D array with same number of rows and columns. You have to determine the longest snake in the array. The property to find the snake is the difference between the adjacent(left, right, up or down) should be either 1 or -1. If there are more than one snakes with maximum length, the output should print both of them.
- BeginnerInProgrammingWorld in United States
Example-->
The given array elements are as follows:
4 7 9 8
5 6 5 4
6 7 8 5
10 9 7 6
The longest snakes are 7->6->5->4->5->6 and 7->6->7->6->5->4| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersHow to modify the file content using Java?
- BeginnerInProgrammingWorld in United States
For eg--> I have a file that contains following data
1,21,Azhar
2,22,Ali
3,34,ABC
4,123,XYZ
.....
I want to modify the content of this file to:
1,Azhar
2,Ali
3,ABC
4,XYZ| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersHow can I redirect the output obtained on console to a new file using JAVA?
- BeginnerInProgrammingWorld in United States| Report Duplicate | Flag | PURGE
Java
Well you are getting the right result but what was the reason for doing all these computations? Can you please explain.
- BeginnerInProgrammingWorld March 01, 2013