Filter interviews by
I applied via Naukri.com and was interviewed in Nov 2021. There were 4 interview rounds.
Top trending discussions
posted on 18 Sep 2024
I applied via Referral and was interviewed in Aug 2024. There were 3 interview rounds.
Given a list of integer find the longest increase sequence
Find the first non-repeating integer in a list using Java 8 stream API.
Use Java 8 stream API to group integers by count
Filter out integers with count greater than 1
Return the first non-repeating integer
Using Java 8 Stream API to find the fruit with maximum price in a Map of fruits.
Use entrySet() method to get a stream of key-value pairs from the Map.
Use max() method with Comparator.comparing() to find the entry with maximum price.
Extract the key (fruit) from the entry with maximum price.
Program to check if parenthesis are properly balanced
Use a stack data structure to keep track of opening parenthesis
Iterate through the input string and push opening parenthesis onto the stack
When a closing parenthesis is encountered, pop from the stack and check if it matches the corresponding opening parenthesis
If stack is empty at the end and all parenthesis are matched, then the input has properly balanced parenthe
posted on 10 Sep 2024
posted on 26 Oct 2022
I applied via LinkedIn and was interviewed in Sep 2022. There were 3 interview rounds.
Simple aptitude questions, quantitative and qualitative questions
1 medium coding question. Preferably write in Java. Add commands to explain your code along with time and space complexity
Cocktail sort is a variant of bubble sort that sorts in both directions.
Also known as bidirectional bubble sort or shaker sort.
It starts with the first element and compares it with the next one, swapping if necessary.
Then it moves to the last element and compares it with the previous one, swapping if necessary.
It continues until no more swaps are needed.
It is more efficient than bubble sort for large lists with many ou
posted on 16 Sep 2021
I was interviewed in May 2021.
Round duration - 50 minutes
Round difficulty - Medium
It was virtual 1st round with aptitude and computer science related questions and the other was the programming question for which they were given 30 min to solve and available languages are C,C++,Java and Python.
Ninja is given a sequence of numbers and needs to rearrange them so that every second element is greater than its neighbors on both sides.
The task is to rearrange the given array such that every second element is greater than its left and right element.
Read the number of test cases
For each test case, read the number of elements in the array and the array elements
Iterate through the array and swap elements at odd indices with their adjacent elements if necessary
Check if the rearranged array satisfies the conditions and print 1 if it does, else print 0
Round duration - 60 minutes
Round difficulty - Medium
It was around 1PM when this round started. It was taken by 2 developers working in the company. Initially I was a bit nervous but both ther interviewers are flexible. It went well with some discussions and questions.
You are given two strings 'A' and 'B'. While string 'A' is constant, you may apply any number of left shift operations to string 'B'.
Your task is to calcu...
The question asks to find the minimum number of left shift operations required to obtain the longest common prefix of two given strings.
Perform left shift operations on string B to find the longest common prefix with string A
Count the number of left shift operations required to obtain the longest common prefix
Return the minimum number of left shift operations for each test case
Round duration - 30 minutes
Round difficulty - Medium
This was the final and technical round. It happened in between 7-7.30 pm. This interview was taken by senior member in the company.
You are given an integer array ARR
. Determine the length of the shortest contiguous subarray which, when sorted in ascending order, results in the entire array being sorted in a...
The question asks to find the length of the shortest contiguous subarray that needs to be sorted in order to sort the whole array.
Iterate through the array and find the first element that is out of order from the left side.
Iterate through the array and find the first element that is out of order from the right side.
Find the minimum and maximum element within the subarray from the above steps.
Expand the subarray from bo...
Tip 1 : Practise programming questions on daily basis.
Tip 2 : Do not jump into code directly. Brainstorm ideas and arrive at a soltuion.
Tip 3 : Learn OOPS along with real world scenarios and also dbms, os and cn.
Tip 1 : Keep it on a Page and Think like a employer when preparing resume.
Tip 2 : Your resume isn’t a list of everything you’ve ever done. Carefully curate the experiences that best capture your skills and problem-solving abilities.
Tip 3 : Include projects and highlight your achievements
posted on 4 Jul 2022
I was interviewed in Jan 2022.
Java OOPs concepts can be implemented using classes, objects, inheritance, polymorphism, and encapsulation.
Create classes with attributes and methods
Instantiate objects from classes
Use inheritance to create subclasses
Implement polymorphism through method overriding
Encapsulate data using access modifiers
posted on 10 Oct 2021
Consultant
39
salaries
| ₹3 L/yr - ₹6.1 L/yr |
Senior Consultant
26
salaries
| ₹4 L/yr - ₹9.5 L/yr |
HR Consultant
13
salaries
| ₹4 L/yr - ₹5.2 L/yr |
Lead Consultant
11
salaries
| ₹7.5 L/yr - ₹10.1 L/yr |
Sales Executive
10
salaries
| ₹1 L/yr - ₹3.1 L/yr |
Randstad
Team Lease
Quess
ManpowerGroup