If I have 1000 objects and my requirement is to sort them
quickly, then which collection would you recommend and why?
Answer Posted / sanjay
ArrayList. indexing is easy, count of objects is already known.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Can a class have multiple superclasses?
What is string subsequence method?
What does java edition mean?
What is the synonym of procedure?
What is the parse method in java?
What is string substring?
What is number data type?
What data structures are used to perform recursion?
What is immutability in java?
Explain yield() method in thread class ?
What is contractor means and methods?
How many bits is a char?
What are the core java topics?
Why stringbuilder is not thread safe?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.