Open In App

Oracle India Pvt Ltd Interview Experience for Full Stack Java Developer

Round 1(Online Assessment and Coding Challenge90 minutes): This assessment consisted of two different online programmatic sets of coding challenges and both are important and have to answer them.

Expectations:



     1. Java/ J2EE (Online Assessment 30 minutes): This section contains three different types of programmatic skills, and each one has a different set of questions.  Each Section has multiple choice question which needs to answer, and there is no negative marking.              

  Expectations:



Expectations:

Expectations:

   2. Oracle Coding Challenge (60 mins): This assignment contains two different sets of programming questions, which need to complete in 60 minutes.  Each one will be challenging, and need to choose the strategy to solve this problem wisely, as time is only 60 minutes.

Expectations:

Task 1: Girls in Tech Hackathon

        The Girl in Tech Hackathon is code-a-thon where developers, designers, scientists, students, entrepreneurs, and educators gather to collaborate on projects including applications, software, hardware, data visualization, and platform solutions. The Participants are sitting around the table, and they are numbered from team1 to team n in the clockwise direction. This means that the Participants are numbered 1,2, ..,n-1,n and participants 1 and n are sitting next to each other. After the Hackathon duration, judges started reviewing the performance of each participant. However, some participants have not finished the project. Each participant needs ti extra minute to complete their project. Judges started reviewing the projects sequentially in the clock direction, starting with team x, and it takes them exactly 1 minute to review each project. This means team x gets no extra time to work, whereas team x +1 gets 1 min more to work and so on. Even if the project is not completed by the participant, but still the judges spend 1 min to understand the idea and rank the participant.

         The first line contains a single positive integer, n, denoting the number of participants in the hackathon. Given the values of t1,t2, t3,… tn extra time requires by each participant to complete the project. You have to guide judges in selecting the best team x to start reviewing the project so that number of participants able to complete their project is maximal.

Print x on a new line. If there are multiple such teams, 
select the smallest one.
Constraints:
1<=n<=9*10^5
0<=ti<=n
Sample Input:
 3
1 0 0
Sample Output:
 2




import java.io.BufferReader;
import java.io.InputStreamReader;
  
Class Test
{
  
    /* Read input from stdin and provide input before
     * running*/
    BufferedReader br = new BufferedReader(
        new InputStreamReader(System.in)) String line
        = br.readLine();
  
    for (int i = 0; i < N; i++) {
        System.out.println(“Hello Word”);
    }
}

   

Task 2: Stella and colorful tree

       While returning from Byteland, Stella got one tree with N nodes from her friend over there. All nodes in this tree are colorless and Stella decided to fill colors to make it colorful. Stella wants it to look beautiful and decided to color it in such a way that any 2 nodes u and v with the shortest distance between u and v <=2 can not be of the same color. She is wondering how many different colors she needs if she fills optimally.

         The first line contains a single integer n ( 3 <=n<100) – the number of nodes in the tree. Each of the next(n-1) lines contains two integers x and y(1<=x, y<=n) – the indices of two nodes directly connected by an edge. It is guaranteed that any node is reachable from any other using the edges.

          In the first line print single integer k – the minimum number of colors Stell has to use.

Sample Input 1:
           3
          2 3
          1 3
Sample Output 1:
          3
 Explanation Output 1:
           Tree is like
           1 -> 3 ->2
We can color as follows
         1: Color a
         3: Color b
         2 : Color c
         Total 3 colors
Sample Input 2:
           5
          2 1
          3 2
          4 3
          5 4
Sample Output 2
           3
Explanation Output2: 
          Tree is like:
          1 -> 2 ->3 -> 4 -> 5
         We can color as follows
         1: Color a
         2: Color b
         3 : Color c
         4: Color a
         5 : Color b
         Total 3 colors.

     




import java.io.BufferReader;
import java.io.InputStreamReader;
  
Class Test {
  
 /* Read input from stdin and provide input before running*/
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in))
  String line = br.readLine();
    
for (int i =0 ; i< N; i++){
   System.out.println(“Hello Word”);
  
}   
}


Article Tags :