i
Lenskart
Filter interviews by
I applied via Referral and was interviewed in Jan 2024. There was 1 interview round.
Rain water trapped problem
Calculate the amount of rainwater trapped between buildings or in a given landscape
Use two pointers approach to find the maximum height on left and right of each building
Subtract the height of each building from the minimum of the maximum heights to get the trapped water amount
Top trending discussions
I was asked a question based on strings that required BFS to solve.
I applied via Referral and was interviewed in Oct 2024. There was 1 interview round.
Machine coding test with a duration of 2 hr. where they'll give one simple project to build.
I applied via Recruitment Consulltant and was interviewed before Jul 2023. There were 2 interview rounds.
MC question where they asked us to implement on our own system
The water trap problem involves finding the minimum amount of water that can be trapped between blocks.
Calculate the maximum height of blocks on left and right of each block.
Find the minimum of the two heights and subtract the height of the current block to get trapped water.
Sum up the trapped water for all blocks to get the total trapped water.
It was a medium-level DSA round
This was also a DSA round
This again a DSA round
I applied via Company Website and was interviewed in Jun 2024. There was 1 interview round.
Implement your own state management in React and integrate it into a React application.
I applied via Company Website and was interviewed before May 2023. There were 2 interview rounds.
I applied via Company Website and was interviewed before Apr 2022. There were 3 interview rounds.
To find the index of the greatest number in an array.
Loop through the array and compare each element with the current greatest number. If the current element is greater, update the greatest number and its index.
Use built-in functions like Math.max() and indexOf() to simplify the code.
I was interviewed in Dec 2021.
Round duration - 60 minutes
Round difficulty - Medium
This round was easy for me because this round only has Basic Math, OS, Programming and English Grammar questions.
There were also two easy coding problems.
Given an integer N, determine and print all the prime numbers between 2 and N, inclusive.
Integer N
Prime numbers printed on separate lines
Step 1 : Run a for loop from 2 to N
Step 2 : check each number if it is prime or not
Step 3 : if prime then print
You are given an array of integers ARR
with a length of N
. Your task is to determine whether it's possible to construct at least one non-degenerate triangle using the val...
Step 1 : We will Iterate through the array and pivot each element as the first side of the triangle. Let’s say we are at ‘I’ th index, So we will pivot ‘I’th index as our first side of the triangle.
Step 2 : And for the second side of the triangle, we will start exploring from the next index of ‘I’ and pivot each element from (I+1) till the end as the second side of the triangle. Let’s say we are at the ‘J’th inde...
Round duration - 45 minutes
Round difficulty - Medium
This was interview round where one indiamart senior lead engineer was interviewer. Initially I was nervous but interviewer was very gentle so I was very comfortable at the middle of interview. Interview was based on my resume and some basic problem solving questions.
Given a string str
and a character X
, your task is to create a function that removes all occurrences of X
from the given string.
If the character X
is not found in the s...
string remove_duplicate(string str)
{
int v[256];
for (int i = 0; i < 256; i++) {
v[i] = 0;
}
string ans = "";
for (int i = 0; i < str.length(); i++) {
int asc = int(str[i]);
if (v[asc] == 0) {
ans.push_back(str[i]);
v[asc] = 1;
}
}
return ans;
}
Tip 1 : Practice At least 100 easy and 200 medium DS & Algorithms based questions.
Tip 2 : Make 2 to 3 good projects based on any technology you like and show them on your portfolio website or resume.
Tip 3 : Contribute to open source projects. At least make a pull request if you are able to solve the bug.
Tip 1 : Your resume must be simple and easy to read.
Tip 2 : You should add all your experiences which you have achieved in your career.
Tip 3 : Only add 2 top projects which you like.
Interview experience
Store Manager
957
salaries
| ₹2.5 L/yr - ₹6.1 L/yr |
Optometrist
866
salaries
| ₹2 L/yr - ₹5.2 L/yr |
Sales Executive
540
salaries
| ₹1.3 L/yr - ₹4.5 L/yr |
Sales Associate
314
salaries
| ₹1.5 L/yr - ₹5 L/yr |
Assistant Manager
269
salaries
| ₹4.5 L/yr - ₹15.6 L/yr |
Coolwinks Technologies
Specsmakers Opticians
Titan Eye Plus
GKB Opticals