Upload Button Icon Add office photos

Filter interviews by

LeetCode Interview Questions and Answers

Updated 23 Sep 2024

LeetCode Interview Experiences

1 interview found

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
More than 8 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed before Sep 2023. There was 1 interview round.

Round 1 - Aptitude Test 

Equation, ratio and proportion

Interview Preparation Tips

Interview preparation tips for other job seekers - Be patient

Software Developer Interview Questions asked at other Companies

Q1. Maximum Subarray Sum Problem Statement Given an array of integers, determine the maximum possible sum of any contiguous subarray within the array. Example: Input: array = [34, -50, 42, 14, -5, 86] Output: 137 Explanation: The maximum sum is... read more
View answer (42)

Interview questions from similar companies

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Company Website and was interviewed before Jul 2023. There was 1 interview round.

Round 1 - One-on-one 

(1 Question)

  • Q1. Create specific components
  • Ans. 

    Creating specific components for software development

    • Identify the requirements for the component

    • Design the component architecture

    • Implement the component using appropriate programming languages and tools

    • Test the component for functionality and performance

    • Integrate the component into the larger software system

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
4-6 weeks
Result
Selected Selected

I applied via Referral and was interviewed before Nov 2023. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Project discussion
  • Q2. Technical Project discussion

I applied via Referral and was interviewed before Jul 2021. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all Resume tips
Round 2 - Technical 

(6 Questions)

  • Q1. Question on anagram whether we can form with given strings
  • Q2. Play random song from list without repetition
  • Ans. 

    Use Fisher-Yates shuffle algorithm to play songs randomly without repetition.

    • Create an array of songs

    • Use Fisher-Yates shuffle algorithm to shuffle the array

    • Play the first song in the shuffled array

    • Remove the first song from the array

    • Repeat steps 3-4 until all songs have been played

  • Answered by AI
  • Q3. Reverse the linked list
  • Ans. 

    Reverse a linked list

    • Iterate through the linked list and change the direction of the pointers

    • Keep track of the previous, current, and next nodes

    • Set the head of the linked list to the last node after reversing

  • Answered by AI
  • Q4. Range sum with the queries
  • Q5. Hashing on 2d matrix counting max 1
  • Ans. 

    Hashing algorithm to count maximum number of 1s in a 2D matrix.

    • Create a hash table to store the count of 1s in each row.

    • Traverse through each row and update the count in the hash table.

    • Find the row with the maximum count of 1s in the hash table.

    • Return the count of 1s in that row.

  • Answered by AI
  • Q6. React interviews hooks

Interview Preparation Tips

Interview preparation tips for other job seekers - Data structure is basic and javascript question were also medium

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed before Jul 2023. There were 3 interview rounds.

Round 1 - Coding Test 

Basic DSA questions were asked.

Round 2 - One-on-one 

(1 Question)

  • Q1. Discussion over React fundamentals.
Round 3 - HR 

(1 Question)

  • Q1. Normal HR questions and negotiation

Interview Preparation Tips

Interview preparation tips for other job seekers - Quite good and smooth
Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Round 1 -> Coding interview -> ask 2 Leetcode problems
Round 2-> HR

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
Selected Selected
Round 1 - Technical 

(1 Question)

  • Q1. DB Schema Design
Round 2 - Technical 

(1 Question)

  • Q1. REST API, SQL and SOLID Principles
Round 3 - Technical 

(1 Question)

  • Q1. Resume Based Round with Manager
Round 4 - HR 

(1 Question)

  • Q1. It was basically a salary negotiation round.

I was interviewed in Feb 2021.

Round 1 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

In the first inerview round, I was asked two problems, that were based on Data Structures. 

I realized a key point in this round : that sometimes, the interviewer is wrong, and you are right. Still, you should not argue with the interviewer, rather, just accept, and move on. 

This happened in the first coding problem itself, when, I actually used a "map" in c++. The interviewer asked me, to use an "unordered map" Instead of map, saying, that using an unordered map would make the insertion cost O(1) instead of O(log(n)). I refused to this by saying, that using unordered map is risky, as in case of a lot of collisions, it could go O(n). 

Still, the interviewer said, that I were wrong, and said that he had done some competitive programming himself, and he never faced a TLE verdict because of using unordered map. 

And I knew very well, that an Anti-Hash-Test could be created, to enforce a TLE verdict. The interviewer went on to saying that "every competitive programmer in the world would never use a map, rather, always use unordered map".

I slightly smiled to this, but agreed, and later cleared that interview, because of the smooth second problem.

  • Q1. 

    Anagram Pairs Verification Problem

    Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the...

  • Ans. 

    Determine if two strings are anagrams of each other by checking if they can be rearranged to form the other string.

    • Create a frequency map of characters for both strings and compare them.

    • Sort both strings and compare them.

    • Use a set to store characters and their counts for each string, then compare the sets.

  • Answered by AI
  • Q2. 

    Distribute N Candies Among K People

    Explanation: Sanyam wishes to distribute 'N' candies among 'K' friends. The friends are arranged based on Sanyam's order of likeness. He initially distributes candies s...

  • Ans. 

    Distribute N candies among K friends in Sanyam's order of likeness, incrementing distribution by K each round.

    • Distribute candies starting from 1st friend, incrementing by K each round

    • If remaining candies are fewer than what a friend is supposed to receive, stop distribution

    • Output the number of candies each friend ends up with at the end of distribution

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

I were asked several questions involving DBMS. I was given data of patients of entire country, and was asked to make a dataBase for the same.

  • Q1. How would you create a database to store the data of all the patients in a country?

Interview Preparation Tips

Professional and academic backgroundI completed Information Technology from Maharaja Surajmal Institute Of Technology. I applied for the job as SDE - 1 in NoidaEligibility criteriaNo criteriaGeeksforGeeks interview preparation:Topics to prepare for the interview - Data Structures, Competitive Coding, Algorithms, Dynamic Programming, GraphsTime required to prepare for the interview - 2 yearsInterview preparation tips for other job seekers

Tip 1 : I did a lot of problems on Codeforces, Codechef and other online platforms
Tip 2 : Apart from normal CP, it is better to do some interview prep separately
Tip 3 : Must note - you need to have development skills as well to clear the projects and DBMS interview.

Application resume tips for other job seekers

Tip 1 : Make a 1 page resume only
Tip 2 : It is good to have some projects and decent ranks on your resume

Final outcome of the interviewRejected

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Company Website and was interviewed before Feb 2023. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Basic react questions
Round 2 - Coding Test 

Basic DSA Questions of array

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-

I applied via Job Portal

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all Resume tips
Round 2 - Coding Test 

In first round, interviewer asked 2 coding questions and to write code on the call itslef.

Round 3 - Technical 

(2 Questions)

  • Q1. HLD - High level Design
  • Q2. Design a system similar to BookMyShow
  • Ans. 

    Design a system similar to BookMyShow for booking tickets for events and movies.

    • User registration and login system

    • Event and movie listing with details and show timings

    • Seat selection and booking process

    • Payment gateway integration

    • Booking history and ticket download option

  • Answered by AI
Round 4 - Technical 

(1 Question)

  • Q1. LLD - Low level design
Round 5 - Technical 

(1 Question)

  • Q1. Database schema design

Skills evaluated in this interview

Contribute & help others!
anonymous
You can choose to be anonymous

LeetCode Interview FAQs

How many rounds are there in LeetCode interview?
LeetCode interview process usually has 1 rounds. The most common rounds in the LeetCode interview process are Aptitude Test.

Recently Viewed

SALARIES

BluWheelz

INTERVIEWS

TechGig

No Interviews

REVIEWS

WPS SOLUTIONS LLP

No Reviews

INTERVIEWS

Avench

No Interviews

REVIEWS

AudIntel India

No Reviews

SALARIES

WPS SOLUTIONS LLP

No Salaries

SALARIES

AudIntel India

No Salaries

LIST OF COMPANIES

AudIntel India

Overview

LIST OF COMPANIES

WPS SOLUTIONS LLP

Overview

COMPANY BENEFITS

Compunnel

No Benefits

Tell us how to improve this page.

LeetCode Interview Process

based on 1 interview

Interview experience

5
  
Excellent
View more

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.4k Interviews
Accenture Interview Questions
3.8
 • 8.1k Interviews
Infosys Interview Questions
3.6
 • 7.5k Interviews
Wipro Interview Questions
3.7
 • 5.6k Interviews
GeeksForGeeks Interview Questions
3.2
 • 39 Interviews
HackerRank Interview Questions
4.2
 • 23 Interviews
InterviewBit Interview Questions
3.6
 • 8 Interviews
CodeChef Interview Questions
3.2
 • 1 Interview
TopCoder Interview Questions
4.7
 • 1 Interview
Codecademy Interview Questions
3.0
 • 1 Interview
View all

LeetCode Reviews and Ratings

based on 1 review

5.0/5

Rating in categories

5.0

Skill development

4.0

Work-life balance

4.0

Salary

4.0

Job security

4.0

Company culture

4.0

Promotions

4.0

Work satisfaction

Explore 1 Review and Rating
Compare LeetCode with

HackerRank

4.2
Compare

CodeChef

3.2
Compare

GeeksForGeeks

3.2
Compare

InterviewBit

3.6
Compare
Did you find this page helpful?
Yes No
write
Share an Interview