Oracle interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

Oracle
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: DSA, Puzzles, Cp, DBMS, BackedEnd development
Tip
Tip

Tip 1 : Solve as many question as you can
Tip 2 : Be confident about your skills
Tip 3 : Revise all concepts before interview

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : confident about skills mentioned on resume
Tip 2 : Keep your resume short and clear.

Interview rounds

01
Round
Medium
Online Coding Test
Duration45 Minutes
Interview date23 Jul 2021
Coding problem2

online coding round consisting of 2 coding questions

1. Infix To Postfix

Easy
20m average time
80% success
0/40
Asked in companies
DelhiveryOracleExpedia Group

You are given a string 'exp' which is a valid infix expression.


Convert the given infix expression to postfix expression.


Note:
Infix notation is a method of writing mathematical expressions in which operators are placed between operands. 

For example, "3 + 4" represents the addition of 3 and 4.

Postfix notation is a method of writing mathematical expressions in which operators are placed after the operands. 

For example, "3 4 +" represents the addition of 3 and 4.

Expression contains digits, lower case English letters, ‘(’, ‘)’, ‘+’, ‘-’, ‘*’, ‘/’, ‘^’. 


Example:
Input: exp = ‘3+4*8’

Output: 348*+

Explanation:
Here multiplication is performed first and then the addition operation. Hence postfix expression is  3 4 8 * +.


Problem approach

I used stack to solve it, then coded it up

Try solving now

2. Number of Connected Computers.

Moderate
10m average time
90% success
0/80
Asked in companies
FacebookOracleMicrosoft

You have been given a grid ‘ARR’ of size ‘N' * M’. ‘ARR[i][j]’ is ‘1’ if the computer is present at position ‘(i,j)’ otherwise it is zero. A computer is said to be a connected computer if there is a computer in its row or column other than itself. Your task is to return the number of connected computers.

Example:

subsequence

Let’s say you have a grid [[1,0],[1,1]]. We can say the computer ‘ARR[0][0]’ is a connected computer because there is a computer in its column other than itself. We can say the computer ‘arr[1][0]’ is a connected computer because there is a computer in its row and column other than itself. We can say the computer ‘arr[1][1]’ is a connected computer because there is a computer in its row other than itself. Therefore the number of connected computers is 3.
Problem approach

I have dfs to solve it, maintain visited array,
run a dfs, whenever it break count the components

Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date29 Jul 2021
Coding problem2

In this round, 2 interviewers were present. They shared Docs in which we had to write code. Our camera was on.

1. Sort An Array of 0s, 1s and 2s

Easy
10m average time
90% success
0/40
Asked in companies
IBMSamsungDirecti

You have been given an array/list 'arr' consisting of 'n' elements.


Each element in the array is either 0, 1 or 2.


Sort this array/list in increasing order.


Do not make a new array/list. Make changes in the given array/list.


Example :
Input: 'arr' = [2, 2, 2, 2, 0, 0, 1, 0]

Output: Final 'arr' = [0, 0, 0, 1, 2, 2, 2, 2]

Explanation: The array is sorted in increasing order.
Problem approach

I had solved this problem earlier so I knew 3 approaches to this problem. But as suggested I did not jump to best solution in the first go and acted like I am trying then and there only.

Approach 1 : I told I will use sort STL that will do my work.
Approach 2 : I wrote the code for bubble sort.
Then he asked as can I come up with even better solution then I did this
Approach 3 : I counted the zeros ones and twos and then printed them.

he was satisfied with the solutions and moved on.

Try solving now

2. Ways To Make Coin Change

Moderate
20m average time
80% success
0/80
Asked in companies
MicrosoftHSBCOracle

You are given an infinite supply of coins of each of denominations D = {D0, D1, D2, D3, ...... Dn-1}. You need to figure out the total number of ways W, in which you can make a change for value V using coins of denominations from D. Print 0, if a change isn't possible.

Problem approach

Input Format
The first line of input contains an integer N, representing the total number of denominations.

The second line of input contains N integers values separated by a single space. Each of the integer value represents the denomination value.

The third line of input contains the value of V, representing the value for which the change needs to be generated.
Output Format:
The only line of output prints the total number of ways W, in which a change for V is possible.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by Oracle
2032 views
0 comments
0 upvotes
company logo
Software Engineer
5 rounds | 13 problems
Interviewed by Oracle
0 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by Oracle
0 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 5 problems
Interviewed by Oracle
1103 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7977 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
10148 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4448 views
1 comments
0 upvotes