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

SDE - 1

Optum
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
In the beginning, I started learning about basics DSA concepts by the beginning of 2nd year. These included topics like array, string, stack, queue and solving questions on hacker rank. After practising enough questions on HackerRank and codechef, I moved to advanced DSA topics including LinkedList, Tree, Graph, DP, etc. I practiced lots of questions on leetcode and codeforces to gain confidence to move on to interviews.
Application story
Optum visited our campus during placement drive. We just had to upload resume and fill all details in the form. Firstly, they took an online assessment. Later, they called us for the interview rounds.
Why selected/rejected for the role?
The basic reason for my rejection was that I was not able to contribute a lot by preparing the backend project that was assigned to me.
Preparation
Duration: 6 months
Topics: Data Structures, Algorithm, DBMS, OOPS, OS, CN
Tip
Tip

Tip 1 : Participate in live contests on platforms like CodeChef, Codeforces, Atcoder, etc.
Tip 2 : Practice previous interview questions and take references from websites like LeetCode, InterviewBit, GeeksforGeeks.
Tip 3 : Prepare your resume well.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1: Have 2-3 projects on resume.
Tip 2: Don't put false details in resume.
Tip 3: Add previous internship experience if done as it adds a lot of value to your resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 minutes
Interview date26 Jul 2022
Coding problem2

1. Wildcard Pattern Matching

Hard
50m average time
30% success
0/120
Asked in companies
SalesforceFreshworksWalmart

Given a text and a wildcard pattern of size N and M respectively, implement a wildcard pattern matching algorithm that finds if the wildcard pattern is matched with the text. The matching should cover the entire text not partial text.

The wildcard pattern can include the characters ‘?’ and ‘*’

 ‘?’ – matches any single character 
 ‘*’ – Matches any sequence of characters(sequence can be of length 0 or more)
Problem approach

Step 1 :

Try solving now

2. Clone Graph

Moderate
25m average time
75% success
0/80
Asked in companies
UberAppleFacebook

You are given a reference/address of a node in a connected undirected graph containing N nodes and M edges. You are supposed to return a clone of the given graph which is nothing but a deep copy. Each node in the graph contains an integer “data” and an array/list of its neighbours.

The structure of the graphNode class is as follows:

class graphNode 
{  
    public:
        int data;
        vector<graphNode*> neighbours;
}
Note :
1. Nodes are numbered from 1 to N.

2. Your solution will run on multiple test cases. If you are using global variables make sure to clear them.
Problem approach

Step 1 :

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date2 Aug 2022
Coding problem2

1. Reverse words in A String

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

You are given a string 'str' of length 'N'.


Your task is to reverse the original string word by word.


There can be multiple spaces between two words and there can be leading or trailing spaces but in the output reversed string you need to put a single space between two words, and your reversed string should not contain leading or trailing spaces.


Example :
If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.
Problem approach

Step 1 :

Try solving now

2. House Robber II

Moderate
15m average time
80% success
0/80
Asked in companies
UberIntuitMicrosoft

Mr. X is a professional robber planning to rob houses along a street. Each house has a certain amount of money hidden.


All houses along this street are arranged in a circle. That means the first house is the neighbour of the last one. Meanwhile, adjacent houses have a security system connected, and it will automatically contact the police if two adjacent houses are broken into on the same night.


You are given an array/list of non-negative integers 'ARR' representing the amount of money of each house. Your task is to return the maximum amount of money Mr. X can rob tonight without alerting the police.


Note:
It is possible for Mr. X to rob the same amount of money by looting two different sets of houses. Just print the maximum possible robbed amount, irrespective of sets of houses robbed.


For example:
(i) Given the input array arr[] = {2, 3, 2} the output will be 3 because Mr X cannot rob house 1 (money = 2) and then rob house 3 (money = 2), because they are adjacent houses. So, he’ll rob only house 2 (money = 3)

(ii) Given the input array arr[] = {1, 2, 3, 1} the output will be 4 because Mr X rob house 1 (money = 1) and then rob house 3 (money = 3).

(iii) Given the input array arr[] = {0} the output will be 0 because Mr. X has got nothing to rob.
Problem approach

Step 1 :

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
SDE - 1
2 rounds | 7 problems
Interviewed by Optum
1449 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 2 problems
Interviewed by Optum
0 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Optum
945 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by Optum
834 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes