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

SDE - Intern

ShareChat
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Strutures, DBMS, OOPS, Computer Networks, System Design, Binary Search, Dynamic Programming, Algorithms,Operating Systems, Projects Summary
Tip
Tip

Tip 1 : Practice atleast 400 DSA questions and the questions should be a good balance of easy medium and hard questions.
Tip 2 : If you have time of Competitive Programming please do it , Competitive Programming always helps people to clear OA and if you have a good hand on experience in competitive programming then doing DSA will be lot more easier for you.
Tip 3 : Have a basic understanding of system design concepts , it always helps people to explain projects or explain database tradeoff questions in terms of system design concepts.
Tip 4 : Spend a good amount of time creating good connections on Linkedin because at the end you are going to get Job Links and referrals from Linkedin.

Application process
Where: Referral
Eligibility: No
Resume Tip
Resume tip

Tip 1 : Keep it short and simple 
Tip 2 : Don't bloat your resume with too much designs or fancy fonts.
Tip 3 : Send your resume to your collegues or Linkedin connections for review because a good resume needs multiple iterations of improvement.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 minutes
Interview date1 Dec 2021
Coding problem1

There were coding questions in this round 

1. Task Scheduler

Moderate
35m average time
65% success
0/80
Asked in companies
UberFacebookOracle

A ninja needs to complete ‘n’ tasks. Each task is represented by an uppercase letter of the English alphabet. Different letters are assigned to different tasks. A ninja can complete tasks in any order. He takes one unit of time to complete one task. For each unit of time, he could complete either one task or just be idle.

Ninja easily gets bored by doing the same task again. So he decided to keep at least ‘t’ units of time between any two same tasks.

You are given a string ‘tasks’ consisting of ‘n’ uppercase letters of the English alphabet, representing the tasks ninja need to complete, and an integer ‘t’ representing the least units of time between any two same tasks. Find out the minimum total units of time ninja will take to complete all ‘n’ tasks.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date6 Dec 2021
Coding problem2

The round begin with intro of interviewer followed by intro of me.
I was asked some resume based questions (projects, achievements ... )
Then i was asked two DSA problems one by one and it was mandatory to solve both of them.
The questions were really good (Both Leetcode medium) i was panicked at the begining because i did not expected the level of question i was asked but somehow i was able to calm down myself and i solved both problems correctly.
Also interviewer asked me to write code of both problems on my local IDE and run the code on specific set of test cases provided by interviewer during interview.

1. Longest Univalue Path

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

You are given a binary tree, the task is to find out the length of the longest path which contains nodes with the exact same value. It is not necessary for the path to pass through the root of the binary tree.

Between two nodes, the length of the path can be defined as the number of edges contained between them.

For example, consider the following binary tree:

            7
           / \
          7   7
         / \   \
        8  3    7

For the above tree, the length of the longest path where each node in the path has the same value is 3 and path is 7 -> 7 -> 7 -> 7.

Problem approach

Step -1 : Interviewer asked me to write best possible solution of the problem.
Step -2 : I thought about approches for few moments and i came up with a solution using DFS and O(n) time complexity.
Step -3 : Interviewer found a corner case and asked to resolve the corner case (will discuss corner case in corner case section)
Step -4 : I resolved the corner case and interviewer was satisfied with my solution.

Try solving now

2. Jump Game

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

There is an array 'JUMP' of size 'N' which is 1-indexed and you are currently at index 1. Your goal is to reach index 'N' (end).


When you are at index 'i', you can jump a maximum length of 'JUMP[i]' which means you can make a jump of size 1 to JUMP[i]. Return true if you can reach the end otherwise false.


Example:-
N = 5
JUMP = [1,2,3,4,5]

ANSWER:- The answer should be YES as you can jump from 1st index to 2nd index, from 2nd index to 4th index, and from 4th index to 5th index.
Problem approach

Step - 1 : I was asked by interviewer to solve the problem in best possible time complexity.
Step - 2 : Initially i have written the brute force approach to solve the problem by picking each index from start and updating all indexes after that index and taking minimum at every further index (DP).
Step - 3 : Interviewer said this is not best possible solution this can be optimized.
Step -4 : I thought for some time and created a O(n) time complexity logic and written code for that.
Step - 5 : Interviewer gave me some test cases to run my code and the outputs was not the expected output.
Step -6 : I debugged my code by dry running the test case and after debugging interviewer gave me few more test cases and all of them were passed.

Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date8 Dec 2021
Coding problem0

The interview started with intro of interviewer and mine.
Then i was asked some project based question and dbms , oops, computer networks based questions.
As a final question i was asked to design a rate limitter.

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 | 3 problems
Interviewed by ShareChat
1670 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by ShareChat
1178 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 8 problems
Interviewed by ShareChat
1018 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by ShareChat
559 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15481 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15339 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes