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

SDE - 1

TravClan
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data structures and algorithms, Web development, Oops, DBMS ,SQL
Tip
Tip

Tip 1 : Must do some good projects.
Tip 2 : Must prepare for CSE core subjects.

Application process
Where: Campus
Eligibility: 7cgpa+
Resume Tip
Resume tip

Tip 1: Don't put false things on your resume.
Tip 2: Must do some good projects for resume

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 mins
Interview date15 Jun 2022
Coding problem0

It was basically online Aptitude round. Questions were mainly comprises of Quants, Verbal, General Aptitude etc.

02
Round
Medium
Online Coding Interview
Duration120
Interview date15 Jun 2022
Coding problem3

It was basically a subjective coding / technical round. So there were 6 questions in total three for technical questions like explain client server architecture or questions related to Design a UBER like system.

1. Height of Binary Tree

Easy
15m average time
80% success
0/40
Asked in companies
GrabBarclaysAmazon

The height of a tree is equal to the number of nodes on the longest path from the root to a leaf.


You are given an arbitrary binary tree consisting of 'n' nodes where each node is associated with a certain value.


Find out the height of the tree.


Example :
Input: Let the binary tree be:

Output: 2

Explanation: The root node is 3, and the leaf nodes are 1 and 2.

There are two nodes visited when traversing from 3 to 1.
There are two nodes visited when traversing from 3 to 2.

Therefore the height of the binary tree is 2.
Problem approach

Step-1 : I have used recursion for the problem.
Step-2: Calling of left child and right child via recursion.
Step-3 returning the maximum height between left child and right child.

Try solving now

2. Reverse Linked List

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

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

Step-1 Reversing a linked list using pointer.
Step-2 Talking next pointer and assigning current pointer to the previous pointer till the size of linked list
Step-3 Returning the prev.

Try solving now

3. K-th maximum in an array.

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

You are given an array consisting of 'N' distinct positive integers and a number 'K'. Your task is to find the kth largest element in the array.

Example:
Consider the array {2,1,5,6,3,8} and 'K' = 3, the sorted array will be {8, 6, 5, 3, 2, 1}, and the 3rd largest element will be 5.
Note:
1) Kth largest element in an array is the kth element of the array when sorted in non-increasing order. 

2) All the elements of the array are pairwise distinct.
Problem approach

Step-1 Putting all the elements of array in priority queue.
Step-2 removing the elements of priority queue till k>0.
Step -3 returning the last removed value from priority queue.

Try solving now
03
Round
Medium
Face to Face
Duration30 mins
Interview date17 Jun 2022
Coding problem1

It was basically a technical+Hr round comprises of questions based on your resume like what projects and in depth questions in project. Like the libraries you have used in that particular project. We even have to show them the love demo of our project and the code working behind it. Then they will ask questions related to the project.

1. Longest Word

Moderate
20m average time
85% success
0/80
Asked in companies
UberAppleAmazon

You are given an array/list of words ‘ARR’. Your task is to find all the words having the longest length which can be made from some other words on the list.

Note :

Return the list of all those words sorted in alphabetical. Return an empty list in case there are no such words

For Example :

Input: cat, banana, dog, nana, my, walk, walker, baby, dogwalkers, s, babymybaby

Output: babymybaby dogwalkers

Here in the given list of words, you can see that the words babymybaby, dogwalkers contain the words present in the list i.e. ‘s’, 'dog’, ‘walker’,‘baby’ and ‘my’ and both are of the same length.
Problem approach

Step-1 Take a space seperated array for the sentence.
Step-2 By iterating in the array find the word having maximum length.
Step-3 print the word having maximum length.

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
company logo
SDE - 1
5 rounds | 6 problems
Interviewed by TravClan
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by TravClan
721 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 13 problems
Interviewed by TravClan
104 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