Oracle OCI | SMTS [IC3] | Phone Screen & onsite

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2022-06-24Added By Anonymous
Source: Link

Company: Oracle OCI
Role: ic-3
Interview Stage: Onsite
Location: unknown
Year: unknown

Original Post Content:

Technical Phone Screen -

Introduction
Few questions on previous experience and Master's Thesis that I had worked on.
HackerRank Question:

Given an m*n matrix of 0s and 1s. Each row is sorted.
Find the lowest index of 1.

e.g.
[0 0 0 1 1]
[0 0 0 0 1]
[0 1 1 1 1]
[0 0 1 1 1]

i.e Here, Index of 1 in each row
Row0 - 3
Row0 - 4
Row0 - 1
Row0 - 2

The above should return 1, (as it is the lowest).

Follow-up:
1. Optimize the above solution.

2. What if each row has different number of elements.
e.g.
[0 0 1]
[0 0 0 1 1]
[0 1 1 1]
[0]

Cleared the Technical Phone Screen.

Onsite: [Each round was 1 hour long]

Round 1 (Design Round): (LLD)

1. Introduction
2. Few Behavioral questions
    a. Most Challenging work
    b. How do you choose if given 2 ways to work on a task.
3. Design a Music Player.

Requirement:
1. User should be able to select a song
2. Play a song
3. Add a song
4. Remove a song
5. Create playlist - Add songs/remove song/ play playlist
6. Shuffle playlist

Define the Classes, member variables and the methods for above requirement.

Define the shuffle playlist method.

Round 2 (Coding Round):

1. Introduction
2. Questions on previous work experience (15mins)
3. HackerRank Question:

Given an array of integers. Find the longest perfect square chain.

Longest perfect square chain is defined as all the numbers in the chain that is perfect square of previous number.

A = [2, 3, 4, 5, 9, 16, 25, 81, 256]

e.g., Perfect square chains are

4 -> 16 -> 256     (length = 3)
9 -> 81                (length = 2)
25                     (length = 1)

Should return [4, 16, 256]

Note: Cannot use Math.sqrt() for finding the square root.

Round 3 (Bartender Round): Behavioral
Asked lot of questions from each point on resume. Standard behavioral questions.

Round 4: Coding
https://leetcode.com/problems/design-browser-history/

Round 5: Hiring Manager Round

Again standard Behavioral questions.
What are the challenges you faced at work?
How do you deal with a difficult person?
Describe a time when you took risk?
A critical feedback you received from peers? How did you take it?
Time when you didn't agree with your teammate?

Comments