Urban Company (UrbanClap) interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Urban Company (UrbanClap)
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
As a student, I did not know programming till my 1st year of college. But after you start this journey you will fall in love with the problems and their multiple ways of solutions. You will boost your confidence day by day by solving different patterns of questions. I am still learning new patterns daily by solving varieties of questions.
Application story
I applied it through my college placement program. The whole process took 6 days. It contains 1 coding round,1 interview round, and 1 HR round.
Preparation
Duration: 3 months
Topics: Dynamic Programming, OOPS, Operating System, DBMS, Greedy Algorithms, Computer Networks
Tip
Tip

Tip 1 : I prepared all topics from my Coding Ninjas Course - Competitive Programming
Tip 2 : I practiced 300+ questions on CodeZen ( Coding Ninjas Platform), LeetCode, InterviewBit
Tip 3 : I took part in contests on CodeForces.
Tip 4 : Apart from Data Structures and Algorithms , I also studied DBMS, OOPs and other course subjects

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

Tip 1 : Keep Resume up to date for the role you are applying.
Tip 2 : Mention atleast 1 project or past work experience.
Tip 3 : Try to keep a 1 pager resume.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date1 Apr 2021
Coding problem2

The round consisted of 2 coding Problems and it lasted for 60 minutes from 12:00 PM to 1:00 PM on Hackerearth.
Use of other IDEs was prohibited and video was on.

1. Implement indexOf()

Moderate
25m average time
70% success
0/80
Asked in companies
IBMFacebookSamsung R&D Institute

You are given two strings A and B. Find the index of the first occurrence of A in B. If A is not present in B, then return -1.

For Example:
A = “bc”, B = “abcddbc”.
String “A” is present at index 1, and 5(0-based index), but we will return 1 as it is the first occurrence of “A” in string “B”.
Follow Up:
Can you solve this in linear time and space complexity?
Try solving now

2. Search In Rotated Sorted Array

Moderate
30m average time
65% success
0/80
Asked in companies
Tata 1mgWalmartDelhivery

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
02
Round
Medium
Face to Face
Duration60 minutes
Interview date4 Apr 2021
Coding problem2

The round was conducted on Google Meet with 2 interviewers . They were friendly and helpful.
The timing was 12:00 to 1:00 PM.
Our Video was on .

1. Distinct Subsequences

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

You have been given string 'S' of length 'N' that may contain duplicate alphabets. Your task is to return the count of distinct subsequences of it.

For example:

For the given string “deed” :
The possible subsequences are {“”}, {“d”}, {“e”}, {“de”}, {“e”}, {“de”}, {“ee”}, {“dee”}, {“d”}, {“dd”}, {“ed”}, {“ded”}, {“ed”}, {“ded”}, {“eed”} and {“deed”}.

As, {“d”}, {“e”}, {“de”}, {“ed”} and {“ded”} are repeated. 

The distinct subsequences are {“”}, {“d”}, {“e”}, {“de”}, {“ee”}, {“dee”}, {“dd”}, {“ed”}, {“ded”}, {“eed”} and {“deed”}

Thus, the output will be 11. 

Note:

As the answer can be large, return your answer modulo 10^9  + 7.  
Try solving now

2. OOPS Questions

Explain OOPS concepts. (Learn)

What is run time polymorphism? (Learn)

03
Round
Easy
HR Round
Duration60 minutes
Interview date7 Apr 2021
Coding problem1

This was a Behavioral Round. It lasted for 45-50 minutes. It consisted of a discussion on my projects. The interviewer was very impressed by the way I explained my projects. She even appreciated me for that. This was followed by normal HR questions .Timing of This round was 4:00 PM to 5:00 PM

1. Basic HR Questions

1. Why should we hire you?

2. What is your job expectation?

Problem approach

Tip 1: Have confidence in Yourself
Tip 2: Practice well, this helps in the interviews because the giving an approach is not sufficient. You need to code in front of them and reach the most optimal solution as well
Tip 3: Be well versed with time complexity and your course subjects like OOPS, DBMS, Computer Networks 

Best of luck!!!

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which operator is used for exponentiation in Python?

Choose another skill to practice
Similar interview experiences
SDE - 1
4 rounds | 7 problems
Interviewed by Urban Company (UrbanClap)
670 views
0 comments
0 upvotes
SDE - 1
4 rounds | 6 problems
Interviewed by Urban Company (UrbanClap)
0 views
0 comments
0 upvotes
SDE - 1
2 rounds | 3 problems
Interviewed by Urban Company (UrbanClap)
538 views
0 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by Urban Company (UrbanClap)
465 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
107484 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
51830 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
32109 views
6 comments
0 upvotes