Oracle Interview Experience | Set 45 (For 3 Years Experienced)

Oracle 3 years Java Experienced Kolkata location. I attended 2 rounds.

Round 1

  1. List prime factorization of numbers from 1 to 10000
  2. List Armstrong Numbers from 1 to 500
  3. Write 5 features from 5 classes of Collection Framework
  4. Find missing number from given Pattern. It was easy but right now I cannot remember the exact pattern

Round 2

  1. Find Middle element in LinkedList contains millions of millions data by traverse only once and without using extra memory space.

    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    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;
    }

    chevron_right

    
    

  2. Listing Contiguous Elements whose sum is maximum in an array contains signed integers
  3. 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 …
    1. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks 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.

      Related Practice Problems


      Write your Interview Experience or mail it to contribute@geeksforgeeks.org



      My Personal Notes arrow_drop_up