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

SDE - Intern

Hike
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 12 Months
Topics: Data Structures, Algorithms, OOPS, Operating System, Core Java
Tip
Tip

Tip 1 : Practice different varieties of good questions of Data Structures and Algorithms.
Tip 2 : Prepare Core Subjects like OS and DBMS thoroughly.
Tip 3 : Prepare concepts like Exception Handling, Garbage Collector, Multithreading etc in the programming language like Java thoroughly.

Application process
Where: Campus
Eligibility: 65% throughout without backlog.
Resume Tip
Resume tip

Tip 1 : Must include your coding profiles in your resume.
Tip 2 : Make your resume of 1 page and not include much fancy colors and designs.

Interview rounds

01
Round
Hard
Online Coding Test
Duration90 minutes
Interview date15 Feb 2022
Coding problem2

The test was conducted on Hackerrank. The Code Editor was really good. Test was conducted in the evening. You need to solve atleast 3-4 questions out of 6 to clear the round.

1. Next Permutation

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

You have been given a permutation of ‘N’ integers. A sequence of ‘N’ integers is called a permutation if it contains all integers from 1 to ‘N’ exactly once. Your task is to rearrange the numbers and generate the lexicographically next greater permutation.

To determine which of the two permutations is lexicographically smaller, we compare their first elements of both permutations. If they are equal — compare the second, and so on. If we have two permutations X and Y, then X is lexicographically smaller if X[i] < Y[i], where ‘i’ is the first index in which the permutations X and Y differ.

For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

Problem approach

Step 1 : According to the constraints given, brute solution would have definitely given TLE.
Step 2 : Then I did the solution in which we swaps and reverses some part of the string according to the logic.
Step 3 : All test cases were passed.

Try solving now

2. Sell Diminishing Bricks

Moderate
25m average time
70% success
0/80
Asked in companies
AmazonHikeSoft Suave

Ninja has started a new business of selling bricks. There are ‘N’ types of bricks of distinct types present in his shop, and each brick’s cost is the number of bricks of that type currently present in his shop. The total number of each type of brick in the shop is given in an array 'ARR'. Ninja has received an order of ‘L’ bricks in his shop. Your task is to find the maximum profit Ninja can attain by this order.

Problem approach

Step 1 : Firstly I did the solution using PriorityQueue. But it gave TLE.

Try solving now
02
Round
Hard
Video Call
Duration60 minutes
Interview date3 Mar 2022
Coding problem2

Only Data Structures Problems were asked during this round.

1. Word Break II

Hard
15m average time
85% success
0/120
Asked in companies
SalesforceHikeDunzo

You are given a non-empty string S containing no spaces’ and a dictionary of non-empty strings (say the list of words). You are supposed to construct and return all possible sentences after adding spaces in the originally given string ‘S’, such that each word in a sentence exists in the given dictionary.

Note :

The same word in the dictionary can be used multiple times to make sentences.
Assume that the dictionary does not contain duplicate words.
Problem approach

Step 1 : Gave the solution using Recursion and Backtracking.

Try solving now

2. Running Median

Hard
46m average time
50% success
0/120
Asked in companies
AmazonOYOHike

You are given a stream of 'N' integers. For every 'i-th' integer added to the running list of integers, print the resulting median.

Problem approach

Step 1 : I firstly told the brute solution of sorting the array each time element is added.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : Then I gave solution using PriorityQueue and interviewer was happy.

Try solving now
03
Round
Hard
Video Call
Duration80 minutes
Interview date3 Mar 2022
Coding problem1

Firstly Interviewer told a game for which we have to write a class. Then Interviewer asked different concepts of Java like Exception Handling, Garbage Collector.

1. Java based technical Questions

1. final vs finalize vs finally
2. Types of Memory in Java
3. For which cases and why does OutOfMemoryException occur in Java.
4. For which Java Memory, does this exception occur.
5. Exception Handling (asked many cases like)
eg : Does code in the finally block run or not ?
int fun() {
try {
return 5;
}
finally {
System.out.println("abc");
}
}

6. Garbage Collection (asked in deep, when and how does garbage collector work) 
7. If we have a HashMap, and we want to share it among different web servers, how can we do that?

Problem approach

Tip 1 : Prepare different Concepts of the programming language thoroughly.

04
Round
Hard
Video Call
Duration60 minutes
Interview date3 Mar 2022
Coding problem2

Interview was completely based on OS and Multithreading in Java.

1. Operating System Based Questions

1. Process vs Thread
2. When and why do we need Synchronization? 
3 .Different ways to achieve Synchronization.
4. What is Multithreading and its example. 
5. Mutex vs Semaphore
6. Different types of Semaphores
7. What are Monitors

Problem approach

Tip 1 : Prepare OS Concepts thoroughly.

2. DBMS Questions

1. Different types of locks in Java
2. Like we use synchronized keyword in Java, which lock does it use internally.
3. wait vs notify in Java.
4, Different ways to create a thread in Java.
5. Coding Problem on Threads in Java -
Write a program in which one thread is printing odd values 1,3,5…
and another thread is printing even values 2,4,6…
But we should get the output 1,2,3,4,5,...

Problem approach

Tip 1 : Do not ignore the concepts like Multithreading in Java.

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
1 rounds | 4 problems
Interviewed by Hike
2100 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 2 problems
Interviewed by Hike
1018 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 4 problems
Interviewed by Hike
1044 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 7 problems
Interviewed by Hike
655 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10141 views
2 comments
0 upvotes