Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Curefit interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Curefit
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Data Structures, System Design, Graphs, Competitive Programming, Operating Systems
Tip
Tip

Tip 1 : Have some understanding of Competitive Programming
Tip 2 : Be well versed in Operating systems and other theory subjects
Tip 3 : Always speak out your approach out load and discuss with interviewer before coding

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

Tip 1 : Have some good projects that match with job responsibility
Tip 2 : Mention Competitive Programming only if you are well versed in it. Else they will ask competitive questions.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date3 Aug 2021
Coding problem1

There were 3 coding questios in this round, one of each category - Easy, Medium and Hard. I only remember 1.

1. Next Permutation

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

You have been given a permutation of ‘N’ integers. A sequence of ‘N’ integers is called a permutation if it contains all integers from 1 to ‘N’ exactly once. Your task is to rearrange the numbers and generate the lexicographically next greater permutation.

To determine which of the two permutations is lexicographically smaller, we compare their first elements of both permutations. If they are equal — compare the second, and so on. If we have two permutations X and Y, then X is lexicographically smaller if X[i] < Y[i], where ‘i’ is the first index in which the permutations X and Y differ.

For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

Try solving now
02
Round
Easy
Face to Face
Duration60 Minutes
Interview date5 Aug 2021
Coding problem2

It was a face-to-face interview. The interviewer was very nice and helpful. She only asked me 3 DS questions and did not ask any theoretical questions in this round.

1. Maximum Size Rectangle Sub-matrix With All 1's

Hard
10m average time
80% success
0/120
Asked in companies
Samsung R&D InstituteRazorpayAmerican Express

You are given an 'N' * 'M' sized binary-valued matrix 'MAT, where 'N' is the number of rows and 'M' is the number of columns. You need to return the maximum size (area) of the submatrix which consists of all 1’s i.e. the maximum area of a submatrix in which each cell has only the value ‘1’.

subMatrix_image

In the above image, areas in green, red, and violet color are all submatrices of the original 4x4 matrix.

Note:

1. Binary valued matrix has only two values in each cell : 0 and 1.
2. A submatrix is a matrix formed by selecting certain rows and columns from a larger matrix.
3. The area of a matrix with 'h' rows and 'w' columns is equal to 'h' * 'w'. 
Problem approach

Step 1: Using dynamic programming, at every index store the side length of the maximum square whose bottom right corner is the cell with index (i,j) in the original matrix.
Step 2: In this way, we traverse the original matrix once and find out the required maximum size

Try solving now

2. System Design Question

Design a Parking System that returns the number of cars that are parked in the area, given maximum n cars can be parked at one time.

Problem approach

Tip 1 : Create seperate functions for arrival, departure and to get the number of cards parked at that time.
Tip 2 : Make sure departure is not more than arrival. 
Tip 3 : Store in a list, the cars that arrive if all the slots are filled.

03
Round
Easy
Video Call
Duration60 minutes
Interview date6 Aug 2021
Coding problem1

It was a theoretical round. I was asked questions related to core-subjects and also questions related to my resume.

1. OS Questions

Explain how Semaphores Work. What are the conditions for a system to be in deadlock?

Problem approach

Tip 1 : Explain slowly and clearly
Tip 2 : If you do not know the answer, say it clearly instead of making wild guessed
Tip 3 : Go through the Deadlock and Semaphore parts in OS properly. They are asked a lot in interviews.

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 write a single-line comment in C++?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - Intern
4 rounds | 4 problems
Interviewed by Curefit
967 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Curefit
958 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Curefit
1958 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 5 problems
Interviewed by Curefit
1720 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
13360 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
12384 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
8920 views
2 comments
0 upvotes