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

SDE - 1

Kempston
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
My journey started when I was in my second year of college. I observed my friends practising coding questions, learning new coding languages, and developing individual projects. Inspired by them, I decided to start learning more and practising coding questions myself. As I practised coding questions on platforms like Code Studio, I realized the need to think deeply to solve difficult problems. This experience helped me develop a habit of tackling challenging problems.
Application story
I started preparing for company interviews in my second year of college, and when I heard that this company was coming to our college, I aimed to get selected for it.
Why selected/rejected for the role?
I was rejected because I could not perform well during the interview process.
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: OOPS - You should be well-versed in basic OOPS principles. 

Tip 2: You should be confident and have profound knowledge of the projects you have worked on. 

Tip 3: Basic DB concepts like joins and normalization.

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

Tip 1: Include some projects on your resume. 

Tip 2: Avoid putting false information on your resume.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date3 Jul 2023
Coding problem2

1. Intersection of Two Linked Lists

Easy
25m average time
73% success
0/40
Asked in companies
Hewlett Packard EnterpriseSamsungIntuit

You are given two Singly Linked Lists of integers, which may have an intersection point.

Your task is to return the first intersection node. If there is no intersection, return NULL.


Example:-
The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

alt.txt

Problem approach

We can first determine the lengths of both lists by traversing through the lists. Note that after the intersection the number of nodes remains the same for both lists. Let the lengths come out to be equal to len1 and len2. If len1 exceeds len2 then we move the head pointer of ListNode1 by (len1 - len2) times forward otherwise len2 exceeds len1 so we will move the head pointer of ListNode2 by (len2 - len1) times ahead.Sort 0s, 1s, 2s

Try solving now

2. Sort 0s, 1s, 2s

Easy
0/40
Asked in companies
AmazonWells FargoDeloitte

You are given an array ‘arr’ consisting only of 0s , 1s, and 2s.

Sort the given array.

For Example:

For ‘arr’ = {1, 0, 0, 2, 1}.
‘Answer’ = {0, 0, 1, 1, 2}.
‘Answer’ should contain all 0s first, then all 1s and all 2s in the end.
Problem approach

This approach is based on the following idea:

The problem is similar to "Segregate 0s and 1s in an array".
The problem was posed with three colours, here `0', `1' and `2'. The array is divided into four sections: 
arr[1] to arr[low - 1]
arr[low] to arr[mid - 1]
arr[mid] to arr[high - 1]
arr[high] to arr[n]
If the ith element is 0 then swap the element to the low range.
Similarly, if the element is 1 then keep it as it is.
If the element is 2 then swap it with an element in high range.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date3 Jul 2023
Coding problem2

1. Move All Negative Numbers To Beginning And Positive To End

Easy
10m average time
90% success
0/40
Asked in companies
SAP LabsBarclaysPayU

You are given an array 'ARR' consisting of 'N' integers. You need to rearrange the array elements such that all negative numbers appear before all positive numbers.

Note:
The order of elements in the resulting array is not important.
Example:
Let the array be [1, 2, -3, 4, -4, -5]. On rearranging the array such that all negative numbers appear before all positive numbers we get the resulting array [-3, -5, -4, 2, 4, 1].
Problem approach

You are given an array 'ARR' consisting of 'N' integers. You need to rearrange the array elements such that all negative numbers appear before all positive numbers.

Try solving now

2. Search In Rotated Sorted Array

Moderate
30m average time
65% success
0/80
Asked in companies
FreshworksExpedia GroupPayPal

Aahad and Harshit always have fun by solving problems. Harshit took a sorted array consisting of distinct integers and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4, 5] and if he rotates it by 2, then the array becomes: [4, 5, 1, 2, 3].

After rotating a sorted array, Aahad needs to answer Q queries asked by Harshit, each of them is described by one integer Q[i]. which Harshit wanted him to search in the array. For each query, if he found it, he had to shout the index of the number, otherwise, he had to shout -1.

For each query, you have to complete the given method where 'key' denotes Q[i]. If the key exists in the array, return the index of the 'key', otherwise, return -1.

Note:

Can you solve each query in O(logN) ?
Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date3 Jul 2023
Coding problem2

1. System Design Question

Design a Make-my-trip kind-of, Database design, provide a query to fetch data from the database.

Problem approach

Do practice some YouTube videos on LLD on tic-tac.

Easy
30m average time
80% success
0/40
Asked in companies
OYOThought WorksAdobe

Given an input string (STR), print all possible permutations of the input string.

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

What is recursion?

Choose another skill to practice
Similar interview experiences
SDE - 1
3 rounds | 5 problems
Interviewed by Kempston
905 views
0 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Kempston
408 views
0 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Kempston
398 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes