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

SDE - 1

ShareChat
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 12 Months
Topics: Data Structures , Javascript , Algorithms , Object Oriented Programming ,Data Base Management System,OS
Tip
Tip

Tip 1 : Write Production ready code in during the interview
Tip 2 : Study about subjects well.

Application process
Where: Linkedin
Eligibility: Need projects in Front end
Resume Tip
Resume tip

Tip 1 : Have good explanations of projects.
Tip 2 : Mention about problem solving skills.

Interview rounds

01
Round
Easy
Video Call
Duration60 Minutes
Interview date7 May 2021
Coding problem2

This round consisted of DSA questions and they were looking for good coding practices.

1. Aggressive Cows

Moderate
30m average time
70% success
0/80
Asked in companies
AdobePhonePeSamsung

You are given an array 'arr' consisting of 'n' integers which denote the position of a stall.


You are also given an integer 'k' which denotes the number of aggressive cows.


You are given the task of assigning stalls to 'k' cows such that the minimum distance between any two of them is the maximum possible.



Example:
Input: 'n' = 3, 'k' = 2 and 'arr' = {1, 2, 3}

Output: 2

Explanation: The maximum possible minimum distance will be 2 when 2 cows are placed at positions {1, 3}. Here distance between cows is 2.
Problem approach

Step 1 -> Gave a brute force solution.
Step 2 -> Interviewer asked me to optimize it.
Step 3 -> Optimized it using Binary Search.

Try solving now

2. Next Greater Element

Easy
10m average time
90% success
0/40
Asked in companies
IBMInfo Edge India (Naukri.com)Amazon

You are given an array 'a' of size 'n'.



The Next Greater Element for an element 'x' is the first element on the right side of 'x' in the array, which is greater than 'x'.


If no greater elements exist to the right of 'x', consider the next greater element as -1.


For example:
Input: 'a' = [7, 12, 1, 20]

Output: NGE = [12, 20, 20, -1]

Explanation: For the given array,

- The next greater element for 7 is 12.

- The next greater element for 12 is 20. 

- The next greater element for 1 is 20. 

- There is no greater element for 20 on the right side. So we consider NGE as -1.
Problem approach

Step 1 -> Gave a brute force solution in O(N^2).
Step 2 -> Interviewer told me to optimize it.
Step 3 -> Optimized solution using Stack.

Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date28 May 2021
Coding problem2

This round consisted of React related questions, javascript questions.

1. Javascript based Question

The question was to print numbers from 1 to 10 , with each number printing asynchronously after 1 second , using Javascript.

Problem approach

Step 1 -> Wrote a code using setTimeout()

2. Web Development based Question

What are promises in javascript , What is component lifecycle in ReactJS, What is the difference between Library and Framework, What is redux and what is middleware ?

Problem approach

Step 1 -> Gave short answers for each questions relating to real life examples.

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 | 5 problems
Interviewed by ShareChat
1672 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 6 problems
Interviewed by ShareChat
1189 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by ShareChat
1259 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 7 problems
Interviewed by ShareChat
2194 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115096 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58237 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35146 views
7 comments
0 upvotes