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

SDE - 2

Times Internet
upvote
share-icon
2 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : regular practise on data structure
Tip 2 : keep looking to the new things

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

Tip 1 : share only loyal skills 
Tip 2 : keep exploring things

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date16 Jun 2021
Coding problem1

1. System Design Question

Design a ticket booking system

Problem approach

Tip 1 : step wise solution

02
Round
Easy
Online Coding Interview
Duration70 Minutes
Interview date25 Jun 2021
Coding problem1

1. Hotel Rooms

Moderate
20m average time
20% success
0/80
Asked in companies
AmazonExpedia GroupInfosys Sp

You are the manager of a hotel having 10 floors numbered 0-9. Each floor has 26 rooms [A-Z]. You will be given a sequence of strings of the room where ‘+’ suggests the room is booked and ‘-’ suggests the room is freed. You have to find which room is booked the maximum number of times.

Note:
You may assume that the sequence is always correct, i.e., every booked room was previously free, and every freed room was previously booked.

In case, 2 rooms have been booked the same number of times, you have to return Lexographically smaller room.

A string 'a' is lexicographically smaller than a string 'b' (of the same length) if in the first position where 'a' and 'b' differ, string 'a' has a letter that appears earlier in the alphabet than the corresponding letter in string 'b'. For example, "abcd" is lexicographically smaller than "acbd" because the first position they differ in is at the second letter, and 'b' comes before 'c'.
For Example :
n = 6, Arr[] = {"+1A", "+3E", "-1A", "+4F", "+1A", "-3E"}

Now in this example room “1A” was booked 2 times which is the maximum number of times any room was booked. Hence the answer is “1A”.
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
Senior Android Developer
2 rounds | 5 problems
Interviewed by Times Internet
922 views
0 comments
0 upvotes
Software Developer
4 rounds | 6 problems
Interviewed by Times Internet
1009 views
0 comments
0 upvotes
Full Stack Engineer
3 rounds | 3 problems
Interviewed by Times Internet
800 views
0 comments
0 upvotes
Frontend Developer
2 rounds | 5 problems
Interviewed by Times Internet
85 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29570 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6678 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5176 views
0 comments
0 upvotes