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

SDE - 1

Urban Company (UrbanClap)
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 8 months
Topics: Data Structure, OOPS, Low level Design, DBMS, Data Science
Tip
Tip

Tip 1 : Prepare DSA well from Leetcode or GFG and practice a lot. Try to practice Medium and hard level questions.
Tip 2 : Prepare some good projects, donot copy-paste from online sources. 
Tip 3 : Learn to present yourself by taking at least 10 mock interviews with friends or sites like pramp

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

Tip 1 : Be to the point and according to JD. keep it one paged.
Tip 2 : Start the sentences with action words like developed, implemented etc.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 Minutes
Interview date31 Oct 2021
Coding problem3

Timing - 6PM,
Mode - online, from home.
Coding questions on Segment tree, Dynamic Programming & Arrays

1. Inplace rotate matrix 90 degree

Easy
12m average time
80% success
0/40
Asked in companies
OracleAppleFacebook

You are given a square matrix of non-negative integers of size 'N x N'. Your task is to rotate that array by 90 degrees in an anti-clockwise direction without using any extra space.

For example:

For given 2D array :

    [    [ 1,  2,  3 ],
         [ 4,  5,  6 ],
         [ 7,  8,  9 ]  ]

After 90 degree rotation in anti clockwise direction, it will become:

    [   [ 3,  6,  9 ],
        [ 2,  5,  8 ],
        [ 1,  4,  7 ]   ]
Try solving now

2. Minimum number of swaps required to sort an array

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

You have been given an array 'ARR' of 'N' distinct elements.

Your task is to find the minimum no. of swaps required to sort the array.

For example:
For the given input array [4, 3, 2, 1], the minimum no. of swaps required to sort the array is 2, i.e. swap index 0 with 3 and 1 with 2 to form the sorted array [1, 2, 3, 4].
Try solving now

3. Count Of Range Sum

Moderate
20m average time
80% success
0/80
Asked in companies
WalmartUrban Company (UrbanClap)Thales

You are given an array “Nums” of size ‘N’ and two numbers ‘L,’ ‘R.’ Your task is to return the number of range sum that lies between L and R, both inclusive, where L<=R.

Range sum R(i,j) represents the sum of numbers between the index i to j in Nums. where i <= j.

Example :
Let nums = [1, 2, 3], L = 2, R = 7

Then the possible ranges are [1,1],[2,2],[0,1],[1,2],[0,2], and their sum is 2,3,3,5,6 respectively. Hence the answer will be 5.

Note: Assume zero based indexing.

Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date9 Nov 2021
Coding problem1

Timing - 10PM
Interview was online through G-Meet

1. LRU Cache Implementation

Moderate
25m average time
65% success
0/80
Asked in companies
OYOHikeWalmart

Design and implement a data structure for Least Recently Used (LRU) cache to support the following operations:

1. get(key) - Return the value of the key if the key exists in the cache, otherwise return -1.

2. put(key, value), Insert the value in the cache if the key is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least recently used item before inserting the new item.
You will be given ‘Q’ queries. Each query will belong to one of these two types:
Type 0: for get(key) operation.
Type 1: for put(key, value) operation.
Note :
1. The cache is initialized with a capacity (the maximum number of unique keys it can hold at a time).

2. Access to an item or key is defined as a get or a put operation on the key. The least recently used key is the one with the oldest access time.
Try solving now
03
Round
Easy
Face to Face
Duration60 Minutes
Interview date9 Nov 2021
Coding problem1

Timing 12 Noon
Interviewer was an engineering manager

1. System Design Question

Design a cab booking app for driverless cars

Problem approach

Tip 1 : Think out loud
Tip 2 : Discuss different approaches before going ahead with one.
Tip 3 : Do not keep quiet for long, try to keep interviewer on the same page with you while deriving at the solution

04
Round
Easy
Video Call
Duration60 Minutes
Interview date8 Nov 2021
Coding problem1

Resume + DSA round

1. 4 Sum II

Moderate
0/80
Asked in companies
Hewlett Packard EnterpriseUrban Company (UrbanClap)Amazon

You are given 4 arrays 'ARR1’, 'ARR2’, 'ARR3’, 'ARR4’, each consists of ‘N’ numbers. Your task is to return the number of tuples (i, j, k, l) satisfying the following conditions:

0 <= i,j,k,l < ‘N’
ARR1[i] + ARR2[j] + ARR3[k] + ARR4[l] = 0.
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 Urban Company (UrbanClap)
3460 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)
778 views
0 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by Urban Company (UrbanClap)
809 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114578 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34960 views
7 comments
0 upvotes