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

SDE - 1

ShareChat
upvote
share-icon
2 rounds | 10 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Python, Django, Dynamic Programming, Arrays, Graphs, OS, CN, DBMS, SQL, System Design
Tip
Tip

Tip 1 : Good at coding (solving, explaining), especially Dynamic Programming questions like knapsack. Focus 70% time on coding
Tip 2 : Apply to jobs through referral, not on the company site. Very important.
Tip 3 : Prepare good projects along with how to explain them in an interview.

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

Tip 1 : Max three, projects, which are interesting to talk about, and you have won something for it.
Tip 2 : Leave a lot of white space, keep content small and on one page

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date8 May 2019
Coding problem2

This round had 2 coding questions of Easy to Medium level of difficulty followed by a brief discussion about my projects

1. Reverse Only Letters

Easy
15m average time
85% success
0/40
Asked in companies
AppleOYOPayPal

You are given a string, ‘S’. You need to reverse the string where characters that are not an alphabet stay in the same place, and the rest reverse their positions.

Eg: “a-bcd” becomes “d-cba”

Problem approach

Key idea - 2 pointer method
Approach - place one pointer p1 on start, 2nd pointer p2 on end. Move p1 to right and p2 to left unless we find a non special character for both, if found for both, swap the values pointed by p1 and p2.
Steps:
S1: Pointer p1 at start and p2 at end index
S2: While p1! = p2 and arr[p1] is special character, move p1 to right
S3: While p1! = p2 and arr[p2] is special character, move p2 to left
S4: Swap values pointed by index p1 and p2.
S5: Follow above steps until p1 < p2.

Try solving now

2. Longest Common Prefix

Moderate
40m average time
60% success
0/80
Asked in companies
DunzoShareChatGrofers

You are given an array ‘ARR’ consisting of ‘N’ strings. Your task is to find the longest common prefix among all these strings. If there is no common prefix, you have to return an empty string.

A prefix of a string can be defined as a substring obtained after removing some or all characters from the end of the string.

For Example:
Consider ARR = [“coding”, ”codezen”, ”codingninja”, ”coders”]
The longest common prefix among all the given strings is “cod” as it is present as a prefix in all strings. Hence, the answer is “cod”.
Problem approach

Approach - Using Binary Search - In this approach, we will first find the string with the minimum length among all the strings in the array and store it as prefix because the shortest string is the longest possible common prefix. We will also define a function isCommon(ARR, prefix, length, N) to whether the string prefix is a common prefix for all the strings in the array ARR or not. We will start the search by setting start as 0 and end as the length of prefix. At each iteration, we will set mid as (start+end)/2. Each time search space is divided into two equal parts, one of them is discarded because it is sure that it doesn't contain the solution.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date10 May 2019
Coding problem8

This round had questions mainly from Python, Django and DBMS

1. Python Question

How is memory managed in Python?

2. Python Question

What are decorators in Python?

3. Django Question

What is Django ORM?

4. Django Question

Explain the caching strategies in the Django?

5. DBMS Question

What is database indexing?

6. Algorithms Questions

What is hashing?
How is hashing done?
Why time complexity of hashing is O(1)

7. Django Question

What is a sandbox?

8. Python Question

What are Python namespaces? Why are they used?

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
1190 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by ShareChat
1260 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 7 problems
Interviewed by ShareChat
2195 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