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

SDE - 1

Unthinkable Solutions
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming, SQL
Tip
Tip

Tip 1 : Solve Coding questions from geeksforgeeks
Tip 2 : Try to do puzzle questions
Tip 3 : Should have good knowledge of projects you have done

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

Tip 1 : Do not lie on your resume
Tip 2 : Have some good projects on it

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date12 Aug 2021
Coding problem2

10 MCQs were there basically on topic DSA, Oops.
Then 2 coding questions were there . They were of moderate to difficult level

1. Second largest element in the array

Easy
15m average time
80% success
0/40
Asked in companies
AdobeSamsungIBM

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Problem approach

The idea is to sort the array in descending order and then return the second element which is not equal to the largest element from the sorted array

Try solving now

2. Is SubSequence

Easy
10m average time
90% success
0/40
Asked in companies
Quadrical AIJosh Technology GroupUnthinkable Solutions

You have been given two strings ‘STR1’ and ‘STR2’.

Your task is to find if ‘STR1’ is a subsequence of ‘STR2’.

A subsequence of a string is a new string that can be derived from the original string by deleting some characters (can be none) without changing the relative ordering of other characters.

Example:
‘ACE’ is a subsequence of ‘ABCDE’ because ‘ACE’ can be formed by deleting ‘B’ and ‘D’ without changing the relative order of characters. ‘ADB’ is not a subsequence of ‘ABCDE’ because we can get ‘ABD’ from ‘ABCDE’ but not ‘ADB’ and in ‘ADB’ relative order of ‘B’ and ‘D’ are different from original strings.
Note:
1.Strings ‘STR1’ and ‘STR2’ consists only of English uppercases.

2.Length of string ‘STR2’ will always be greater than or equal to the length of string ‘STR1’.

Example:

For example, the given ‘STR1’ is ‘BAE’ and ‘STR2’ is ‘ABADE’. 
String ‘STR1’ is a subsequence of string ‘STR2’ because ‘BAE’ can be formed by deleting ‘A’ and ‘D’ from ‘ABADE’ and the relative ordering of the characters of the string ‘ABADE’ persists.

subsequence

Try solving now
02
Round
Medium
Online Coding Test
Duration60 minutes
Interview date14 Aug 2021
Coding problem2

1. Remove Duplicates from Sorted Array

Easy
15m average time
85% success
0/40
Asked in companies
Goldman SachsSamsungHewlett Packard Enterprise

You are given a sorted integer array 'arr' of size 'n'.


You need to remove the duplicates from the array such that each element appears only once.


Return the length of this new array.


Note:
Do not allocate extra space for another array. You need to do this by modifying the given input array in place with O(1) extra memory. 


For example:
'n' = 5, 'arr' = [1 2 2 2 3].
The new array will be [1 2 3].
So our answer is 3.
Problem approach

Step 1. Create an auxiliary array temp[] to store unique elements.
Step 2. Traverse input array and one by one copy unique elements of arr[] to temp[]. Also keep track of count of unique elements. Let this count be j.
Step 3.Copy j elements from temp[] to arr[] and return j

Try solving now

2. Sort 0 1 2

Easy
22m average time
0/40
Asked in companies
Expedia GroupWalmartHCL Technologies

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Problem approach

Appproach-Count the number of 0s, 1s and 2s in the given array. Then store all the 0s in the beginning followed by all the 1s then all the 2s.

Algorithm: 
Step 1. Keep three counter c0 to count 0s, c1 to count 1s and c2 to count 2s
Step 2. Traverse through the array and increase the count of c0 if the element is 0,increase the count of c1 if the element is 1 and increase the count of c2 if the element is 2
Step 3. Now again traverse the array and replace first c0 elements with 0, next c1 elements with 1 and next c2 elements with 2.

Try solving now
03
Round
Medium
Video Call
Duration30 minutes
Interview date17 Aug 2021
Coding problem2

It was basically a technical interview. Problems of arrays were given to solve with best approaches to get best time and space complexities. Puzzle Questions were also asked

1. Puzzle

How to measure a length of a rope using two candles

2. Sum Of Max And Min

Easy
10m average time
90% success
0/40
Asked in companies
SAP LabsOracleFlexiEle Consulting Services (FE)

You are given an array “ARR” of size N. Your task is to find out the sum of maximum and minimum elements in the array.

Follow Up:
Can you do the above task in a minimum number of comparisons?
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
3 rounds | 6 problems
Interviewed by Unthinkable Solutions
1442 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 6 problems
Interviewed by Unthinkable Solutions
2170 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by Unthinkable Solutions
881 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Unthinkable Solutions
1153 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6365 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
2197 views
0 comments
0 upvotes