Filter interviews by
I applied via Recruitment Consulltant and was interviewed in Jun 2024. There were 3 interview rounds.
Profit & loss, Distance & Time & Speed, S.I, C.I,...
To find the 3rd maximum salary, we can use SQL queries to filter and sort salary data effectively.
Use the DISTINCT keyword to avoid duplicate salaries: SELECT DISTINCT salary FROM employees.
Sort the salaries in descending order: SELECT DISTINCT salary FROM employees ORDER BY salary DESC.
Use LIMIT or FETCH to get the 3rd salary: SELECT DISTINCT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2.
Top trending discussions
posted on 2 Jun 2022
I appeared for an interview before Jun 2021.
Had DSA and aptitude questions
posted on 16 Sep 2021
I appeared for an interview in Oct 2020.
Round duration - 75 min
Round difficulty - Medium
This round was MCQ and coding round. 25 MCQs and one coding question were asked. MCQs were based on OS, DBMS, Aptitude and Data Structures.
You have 'N' tasks to complete. Each task can only be done on one of two specific days provided in two arrays: day1
and day2
.
For each task i, day1[i]
represents the earliest...
Find the minimum number of days required to complete all tasks given specific completion days for each task.
Sort the tasks based on day1 in ascending order.
For each task, choose the minimum of day1 and day2 as the completion day.
Keep track of the maximum completion day for each task.
The final answer is the maximum completion day of all tasks.
Round duration - 30 min
Round difficulty - Easy
This was a Data Structural round. Only one coding question was asked by the interviewer. The interviewer was very friendly. This round was very easy.
Sort the given unsorted array consisting of N non-negative integers in non-decreasing order using the Bubble Sort algorithm.
The first line contains an integer 'T' r...
Bubble Sort algorithm is used to sort an array of non-negative integers in non-decreasing order.
Implement the Bubble Sort algorithm to sort the array in place.
Compare adjacent elements and swap them if they are in the wrong order.
Repeat this process until the array is sorted.
Time complexity of Bubble Sort is O(n^2) in the worst case.
Example: For input [6, 2, 8, 4, 10], the output should be [2, 4, 6, 8, 10].
Tip 1 : Be confident!
Tip 2 : Maintain high Cgpa
Tip 3 : Do your best
Tip 1 : Mention clear points
Tip 2 : Atleast 3 projects and never put anything you have not revised
posted on 16 Sep 2021
I appeared for an interview before Sep 2020.
Round duration - 75 minutes
Round difficulty - Medium
It was in the evening.
It consisted of 26 questions of easy to hard level.
It consisted of 25 MCQs and only 1 coding problem.
Given a structured list of books and their authors, format the information as specified.
The first line of input contains an integer ‘T' representing the number of tes...
The task is to format a list of authors and their books in a specific way as per the given input format.
Parse the input to extract the number of test cases, number of authors, author names, and their respective books.
Format the output by printing the author names and their books in the specified format.
Ensure correct sequence and labeling of authors and books as per the example provided.
Handle multiple test cases and a...
Round duration - 15 minutes
Round difficulty - Medium
It was more of CV based round. A brief discussion on projects was there followed by some questions like why optum.
You are provided with a linked list of integers. Your task is to implement a function that deletes a node located at a specified position 'POS'.
The first line co...
Implement a function to delete a node from a linked list at a specified position.
Traverse the linked list to find the node at the specified position.
Update the pointers of the previous and next nodes to skip the node to be deleted.
Handle edge cases such as deleting the head or tail of the linked list.
Ensure to free the memory of the deleted node to avoid memory leaks.
Round duration - 15 minutes
Round difficulty - Easy
A short round where some basic dbms questions like procedure, cursor were asked. Then some questions on whether I would prefer working alone or in a team. Where I see myself in 5 years.
You are given a graph with 'N' vertices numbered from '1' to 'N' and 'M' edges. Your task is to color this graph using two colors, such as blue and red, in a way that no two adjacen...
Given a graph with 'N' vertices and 'M' edges, determine if it can be colored using two colors without adjacent vertices sharing the same color.
Use graph coloring algorithm like BFS or DFS to check if the graph can be colored with two colors without conflicts.
Check if any adjacent vertices have the same color. If so, it is not possible to color the graph as described.
If the graph has connected components, color each co...
Tip 1 : Projects do not matter much for this company.
Tip 2 : I did almost all the puzzles from Interviewbit.
Tip 3 : DBMS is really important. Practice queries in SQL thoroughly. You should know the use of limit and top also. It may be asked to write the same query in more than 1 form.
Tip 4 : Practice all the data structures. Questions were simple and you should know the basics of every data structure.
Tip 1 : Don't write anything just for the sake of it.
Tip 2 : If you are writing some project then be thorough with all the details. If you are not much confident, then simply remove it and focus on other subjects.
posted on 12 Jun 2021
Reversing a linked list involves changing the direction of its nodes to point to the previous node instead of the next.
1. Initialize three pointers: previous (prev), current (curr), and next.
2. Traverse the list: while curr is not null, set next to curr.next.
3. Reverse the link: curr.next = prev.
4. Move prev and curr one step forward: prev = curr; curr = next.
5. Repeat until curr is null; prev will be the new head of t...
Invert a binary tree by swapping left and right children recursively.
Use a recursive approach to swap left and right children.
Base case: If the node is null, return.
Example: For a tree with root 1, left 2, right 3, after inversion, left becomes 3, right becomes 2.
Iterative approach can also be used with a queue or stack.
I appeared for an interview in Oct 2020.
Round duration - 90 minutes
Round difficulty - Medium
Test was active from 28th September 8 PM till 2 AM (29th September’20). We could attempt at any time.
1.5 Hr Duration
Two coding questions.
You are provided with an undirected graph containing 'N' vertices and 'M' edges. The vertices are numbered from 1 to 'N'. Your objective is to determi...
Detect cycles in an undirected graph.
Use Depth First Search (DFS) to detect cycles in the graph.
Maintain a visited array to keep track of visited vertices.
If a visited vertex is encountered again during DFS, a cycle exists.
Check for cycles in each connected component of the graph.
Consider edge cases like disconnected graphs and self-loops.
You are provided with a 2-dimensional matrix having N
rows and M
columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...
Count the number of islands in a 2D matrix of 1s and 0s.
Use depth-first search (DFS) to traverse the matrix and identify connected groups of 1s.
Maintain a visited array to keep track of visited cells to avoid redundant traversal.
Increment the island count each time a new island is encountered.
Consider all eight possible directions for connectivity while traversing the matrix.
Handle edge cases such as out-of-bounds indi...
Round duration - 60 minutes
Round difficulty - Medium
Online video call round on Microsoft Teams
Interviewer was very friendly.
This round is often called Domain Discussion Round.
Given a string str
consisting of lowercase English alphabet letters, and an integer K
, you are allowed to perform at most K
operations on this string. An oper...
Find the length of the longest substring consisting of repeating characters after performing K operations.
Iterate through the string and maintain a sliding window of characters.
Keep track of the frequency of characters in the window.
Update the window by changing characters to maximize the length of repeating substring.
Return the length of the longest repeating substring obtained.
Round duration - 60 minutes
Round difficulty - Medium
One hour HR round.
Also called Core Values Interview.
The Interviewer was a senior level employee and was very friendly.
Tip 1 : Interview is more like a two-way discussion rather than a question-answer session, feel free to ask for help/hints if you're stuck.
Tip 2 : Even if you don't know the solution to the problem just try to work out a naive solution. You can optimize it later.
Tip 3 : Make sure to read out the interview experiences of other people who have applied for the same role/company in the past
Tip 1: Keep it concise and to the point.
Tip 2: Don't forget to show your best achievements
posted on 16 Sep 2021
I appeared for an interview in Dec 2020.
Round duration - 60 minutes
Round difficulty - Easy
BJTs are three-terminal semiconductor devices used for amplification and switching of electronic signals.
BJTs have three regions - emitter, base, and collector.
They can be NPN or PNP type, depending on the arrangement of semiconductor materials.
BJTs are current-controlled devices, where a small current at the base terminal controls a much larger current between the collector and emitter.
Common BJT examples include 2N22...
You are given a graph with 'N' vertices numbered from '1' to 'N' and 'M' edges. Your task is to color this graph using two colors, such as blue and red, in a way that no two adjacen...
Graph coloring problem where vertices need to be colored with two colors such that no adjacent vertices share the same color.
Check if the graph can be colored using two colors without any adjacent vertices sharing the same color.
Use graph coloring algorithms like Greedy Coloring or Backtracking to solve the problem.
If there are odd-length cycles in the graph, it is not possible to color the graph with two colors.
If the...
Round duration - 30 minutes
Round difficulty - Easy
Stacks are data structures that follow the Last In First Out (LIFO) principle, while Graphs are data structures that consist of nodes and edges to represent relationships.
Stacks are used for implementing functions, backtracking, and expression evaluation.
Graphs are used for representing networks, social connections, and shortest path algorithms.
Stacks can be implemented using arrays or linked lists.
Graphs can be direct...
You are provided with an N * N
maze where a rat is positioned at starting cell MAZE[0][0]
. The goal is to determine and print all possible paths that the rat can take to r...
Find all possible paths for a rat in a maze from start to finish.
Use backtracking to explore all possible paths in the maze.
At each cell, check if it is a valid move and mark it as part of the path.
Explore all four directions (up, down, left, right) recursively.
When reaching the destination cell, add the path to the result.
Return all valid paths found in the maze.
Tip 1 : Do learn EDC.
Tip 2 : Should know about Multivibrators and electronics basics.
Tip 3 : Do learn some extra technologies eg. ML/AI.
Tip 1: Do not lie at all
Tip 2: Write every project/internship
posted on 18 Oct 2021
I appeared for an interview in Dec 2020.
Round duration - 50 Minutes
Round difficulty - Medium
first round was aptitude round + coding round.
Ninja is organizing a coding competition where two teams compete at a time. To keep it fair and interesting, both teams must have an equal number of members. Ninja’s ta...
Given an integer N, determine if two teams with equal members can be formed based on the divisors of N.
Iterate through all divisors of N and assign members to two teams based on whether the divisor is even or odd.
Keep track of the number of members in each team and check if they are equal at the end.
Return true if the number of members in both teams is equal, false otherwise.
Tip 1 : Practice more coding problem
Tip 2 : Brush Data structure thoroughly
Tip 3 : Be confident in interview and be clear while explaining solution to interviewer.
Tip 1 : Try to make it more concise
Tip 2 : Try to add more projects as well as about hackathon.
based on 3 interview experiences
Difficulty level
Duration
Software Engineer
26
salaries
| ₹3.1 L/yr - ₹7.7 L/yr |
Softwaretest Engineer
25
salaries
| ₹2 L/yr - ₹7 L/yr |
Software Developer
16
salaries
| ₹3.4 L/yr - ₹8 L/yr |
Test Engineer
13
salaries
| ₹2.6 L/yr - ₹6.7 L/yr |
Web Developer
7
salaries
| ₹3 L/yr - ₹8 L/yr |
Cognizant
EXL Service
Sutherland Global Services
Optum Global Solutions