Arrays Interview Report
- -1of 1 vote
AnswersWrite code to read comma-delimited data from a file and display the contents to the screen. The contents need to be sorted in descending order of the second element of each line.
- PinkTulips October 25, 2013 in Canada
Here is some sample data to illustrate how it is formatted:
ADGB, 35, helloWorld
GHFR, 23, niceWeather
GFTD, 40, superMan
OPUK, 35, angryBirds| Report Duplicate | Flag | PURGE
Algorithm - 0of 0 votes
AnswersWrite a method in Java to reverse an array in chunks of 3. You should also consider cases where an array is not a multiple of 3.
- PinkTulips October 25, 2013 in Canada
For example:
Input array: {1,9,6,4,5,8,3,1,5}
Expected results:{6,9,1,8,5,4,5,1,3}| Report Duplicate | Flag | PURGE
Arrays
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.