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
Journey
My journey began during the bustling second week of campus placements, where I had the opportunity to interview with industry giants like Microsoft, Amazon, Oracle, IBM, and Mathworks. The experience was a whirlwind of learning and growth. I reached the final interview stages with Oracle, IBM, and UrbanCompany. Despite a setback with Oracle, my perseverance paid off. I secured an offer from UrbanCompany after a challenging online round followed by three rigorous technical interviews. This phase of my career was not just about facing interviews but also about developing resilience and adapting to different interview styles and technical demands.
Application story
My application journey began with a strategic approach, utilizing the resources available through my university's internal portal. This platform served as a gateway, offering access to various companies participating in on-campus recruitment. I meticulously scanned the portal, identifying potential opportunities aligned with my skills and career aspirations. After shortlisting the companies, I submitted my applications, which included crafting tailored resumes and cover letters for each. The process was systematic yet demanding, requiring attention to detail and understanding what each company was looking for in a candidate. The initial application phase was followed by a series of company communications, including confirmation of application receipt and further instructions regarding the interview process. This period blended anticipation and preparation as I awaited interview calls while honing my technical and interpersonal skills. The journey to the interview stage was about applying and strategically positioning myself as a suitable candidate for these esteemed organizations.
Why selected/rejected for the role?
Strong technical skills, excellent interview performance, alignment with company culture, problem-solving abilities, adaptability, enthusiasm for the role, and potentially positive professional references.
Preparation
Duration: 1.5 months
Topics: DSA, Computer networks, Competitive Programming, Database both Sql and NSql, Little bit of developement knowledge related to my projects
Tip
Tip

Tip 1 :  Practice Easy+Medium
Tip 2 : Stay persistent, do not fall for setbacks
Tip 3 : Revise basic concepts and their implications

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

Tip 1: Only mention projects which you have knowledge about
Tip 2: Mention every small academic achievement

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60
Interview date1 Aug 2021
Coding problem2

1. Array And A Mathematics Equation

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

Ninja has been given a sorted array/list ‘ARR’ of integers of size ‘N’ and 3 integer coefficients ‘X’, ‘Y’, and ‘Z’. Ninja needs to sort the ‘ARR’ by applying the quadratic equation ‘X(ARR[i] * ARR[i]) + Y(ARR[i]) + Z’ to each element of ‘ARR’.

For Example :

Let ‘ARR[]’ = [1, 2, -1] and ‘X’ = 1, ’Y’ =2 and ‘Z’ = 1. Then, for each element at index ‘i’ in the ‘ARR’:
For ‘i’ = 0, ‘ARR[0]’ = 1 and after applying the equation as ‘1 * (1 * 1) + 2 * (1) + 1‘ ‘ARR[0]’ becomes 4.
For ‘i’ = 1, ‘ARR[1]’ = 2 and after applying the equation as ‘1 * (2 * 2) + 2 * (2) + 1‘ ‘ARR[1]’ becomes 9 .
For ‘i’ = 2, ‘ARR[2]’ = -1 and after applying the equation as ‘1 * (-1 * -1) + 2 * (-1) + 1‘ ‘ARR[2]’ becomes 0.
So, ‘ARR’ after modification [4, 9, 0]. The final ‘ARR’ after sorting is [0, 4, 9].

As Ninja is weak with Maths, he asks you for help. Can you help Ninja sort the given ‘ARR’ after applying the quadratic equation to each element?

Problem approach

Just an implementation question

Try solving now

2. Paths in a Maze

Easy
0/40
Asked in companies
Expedia GroupAmazonMeesho

You are given a 2-D matrix consisting of 0’s and 1’s with ‘N’ rows and ‘N’ columns, you are supposed to find all paths from the cell (0,0) (top-left cell) to the cell (N-1, N-1)(bottom-right cell). All cells with value 0 are blocked and cannot be travelled through while all cells with value 1 are open.

If you are currently at cell (x,y) then you can move to (x+1,y)(denoted by ‘D’), (x-1,y)(denoted by ‘U’), (x,y+1)(denoted by ‘R’), (x,y-1)(denoted by ‘L’) in one move. You cannot move out of the grid.

Example :

Example

Try solving now
02
Round
Medium
Video Call
Duration60
Interview date1 Aug 2021
Coding problem2

1. Paint house II

Hard
45m average time
55% success
0/120
Asked in companies
AppleUrban Company (UrbanClap)

Ninja has started a painting business recently. He got a contract to paint ‘N’ houses in a city. Ninja has ‘K’ colors to choose from. But the client has a condition that no two adjacent houses have the same color.

The cost of painting each house with a certain color is represented by an N x K cost matrix. For example, costs[0][0] is the cost of painting house 0 with color 0; costs[1][2] is the cost of painting house 1 with color 2, and so on.

Your task is to help Ninja to find the minimum cost required to paint houses according to this condition.

For Example :
Let say N = 2 and K = 3 and costs = [ [1,5,3] , [2,9,4] ] 

In this case,
Ninja can paint house 0 into color 0, paint house 1 into color 2. Minimum cost: 1 + 4 = 5; 
Or paint house 0 into color 2, paint house 1 into color 0. Minimum cost: 3 + 2 = 5 .
Note :
Assume 0 based indexing
Problem approach

Made a 2D DP array to save costs for every case

Try solving now

2. Shortest Path

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

You have been given an undirected graph of ‘V’ vertices (labeled 0,1,..., V-1) and ‘E’ edges. Each edge connecting two nodes (‘X’,’Y’) will have a weight denoting the distance between node ‘X’ and node ‘Y’.

Your task is to find the shortest path distance from the source node, which is the node labeled as 0, to all vertices given in the graph.

Example:

Input:
4 5
0 1 5
0 2 8
1 2 9
1 3 2
2 3 6

alt text

In the given input, the number of vertices is 4, and the number of edges is 5.

In the input, following the number of vertices and edges, three numbers are given. The first number denotes node ‘X’, the second number denotes node ‘Y’ and the third number denotes the distance between node ‘X’ and ‘Y’.

As per the input, there is an edge between node 0 and node 1 and the distance between them is 5.

The vertices 0 and 2 have an edge between them and the distance between them is 8.
The vertices 1 and 2 have an edge between them and the distance between them is 9.
The vertices 1 and 3 have an edge between them and the distance between them is 2.
The vertices 2 and 3 have an edge between them and the distance between them is 6.

Note:

1. There are no self-loops(an edge connecting the vertex to itself) in the given graph.

2. There can be parallel edges i.e. two vertices can be directly connected by more than 1 edge.
Try solving now
03
Round
Easy
Face to Face
Duration60
Interview date1 Aug 2021
Coding problem1

1. Idenitfy a usecase of LRU cache and its implementation

Problem approach

Tip 1: Learn all caching algorithms
Tip 2: Learn their usecases

04
Round
Easy
Video Call
Duration60
Interview date1 Aug 2021
Coding problem1

1. Entity modelling of a chess game

Problem approach

Tip 1: list down all entities
Tip 2: Identify their actions and interactions
Tip 3: Note the above things down before implementation

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
SDE - 1
3 rounds | 5 problems
Interviewed by Urban Company (UrbanClap)
3486 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)
795 views
0 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by Urban Company (UrbanClap)
828 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes