Oracle 3 years Java Experienced Kolkata location. I attended 2 rounds.
Round 1
- List prime factorization of numbers from 1 to 10000
- List Armstrong Numbers from 1 to 500
- Write 5 features from 5 classes of Collection Framework
- Find missing number from given Pattern. It was easy but right now I cannot remember the exact pattern
Round 2
-
Find Middle element in LinkedList contains millions of millions data by traverse only once and without using extra memory space.
public
E getMidElement() {
E header =
null
;
Iterator<E> increementIterator = linkedList.iterator();
Iterator<E> headerIterator = linkedList.iterator();
int
counter =
0
;
header =
null
;
while
(increementIterator.hasNext()) {
counter++;
if
(counter %
2
==
0
)
header = headerIterator.next();
increementIterator.next();
}
if
(counter %
2
!=
0
) {
header = headerIterator.next();
}
return
header;
}
- Listing Contiguous Elements whose sum is maximum in an array contains signed integers
- Print ODD numbers in one thread and EVEN numbers in another thread, but final print will be in normal sequesnce e.g. 1 2 3 4 5 …
If you like neveropen and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org. See your article appearing on the neveropen main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 neveropen!