Filter interviews by
A prime number is a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers.
A prime number has exactly two distinct positive divisors: 1 and itself.
Examples of prime numbers: 2, 3, 5, 7, 11, 13.
The number 1 is not prime, and 2 is the only even prime number.
To check if a number n is prime, test divisibility from 2 to √n.
Print all anagrams of same type in same line from array of Strings
Create a HashMap with sorted string as key and list of anagrams as value
Iterate through array and add each string to corresponding list in HashMap
Print all values in HashMap
Reverse a single linked list.
Iterate through the list and change the direction of the pointers
Keep track of the previous, current and next nodes
Set the head of the list to the last node after reversing
To check if a tree is a BST or not.
Traverse the tree in-order and check if the values are in ascending order.
For each node, check if its value is greater than the maximum value of its left subtree and less than the minimum value of its right subtree.
Recursively check if the left and right subtrees are also BSTs.
Producer-consumer problem involves synchronization between threads to avoid race conditions.
Producer produces data and adds it to a shared buffer
Consumer consumes data from the shared buffer
Synchronization is required to avoid race conditions
Code example: https://www.geeksforgeeks.org/producer-consumer-solution-using-threads-in-java/
LRU caching is a technique to store frequently used data in cache memory to improve performance.
LRU stands for Least Recently Used.
It removes the least recently used item from the cache when the cache is full.
It uses a doubly linked list and a hash map to implement the cache.
When an item is accessed, it is moved to the front of the list.
When the cache is full, the item at the end of the list is removed.
Example: Ja...
Java 8 introduced lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow functional programming in Java.
Functional interfaces are interfaces with a single abstract method.
Streams provide a way to process collections of data in a functional way.
Default methods allow interfaces to have implementation.
Date and Time API improvements.
Nashorn JavaScript engine added.
Standard dsa questions, easy to medium
I applied via Company Website and was interviewed in Dec 2021. There were 3 interview rounds.
LRU caching is a technique to store frequently used data in cache memory to improve performance.
LRU stands for Least Recently Used.
It removes the least recently used item from the cache when the cache is full.
It uses a doubly linked list and a hash map to implement the cache.
When an item is accessed, it is moved to the front of the list.
When the cache is full, the item at the end of the list is removed.
Example: Java Li...
Producer-consumer problem involves synchronization between threads to avoid race conditions.
Producer produces data and adds it to a shared buffer
Consumer consumes data from the shared buffer
Synchronization is required to avoid race conditions
Code example: https://www.geeksforgeeks.org/producer-consumer-solution-using-threads-in-java/
To check if a tree is a BST or not.
Traverse the tree in-order and check if the values are in ascending order.
For each node, check if its value is greater than the maximum value of its left subtree and less than the minimum value of its right subtree.
Recursively check if the left and right subtrees are also BSTs.
Reverse a single linked list.
Iterate through the list and change the direction of the pointers
Keep track of the previous, current and next nodes
Set the head of the list to the last node after reversing
Print all anagrams of same type in same line from array of Strings
Create a HashMap with sorted string as key and list of anagrams as value
Iterate through array and add each string to corresponding list in HashMap
Print all values in HashMap
Java 8 introduced lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow functional programming in Java.
Functional interfaces are interfaces with a single abstract method.
Streams provide a way to process collections of data in a functional way.
Default methods allow interfaces to have implementation.
Date and Time API improvements.
Nashorn JavaScript engine added.
Top trending discussions
posted on 4 Jan 2025
I applied via Company Website and was interviewed before Jan 2024. There were 2 interview rounds.
Online technical aptitude test
I appeared for an interview in Jan 2021.
Round duration - 40 minutes
Round difficulty - Easy
Given a singly linked list of integers, your task is to implement a function that returns the index/position of an integer value 'N' if it exists in the linked list. Return -1 i...
Implement a function to find the index of a given integer in a singly linked list.
Traverse the linked list while keeping track of the index of each element.
Compare each element with the target integer 'N'.
Return the index if 'N' is found, otherwise return -1.
Handle cases where the list is empty or 'N' is not found.
Consider the constraints on the number of test cases and the length of the linked list.
Your task is to implement a Stack data structure using a Singly Linked List.
Create a class named Stack
which supports the following operations, each in O(1...
Implement a Stack data structure using a Singly Linked List with operations in O(1) time.
Create a class named Stack with getSize, isEmpty, push, pop, and getTop methods.
Use a Singly Linked List to store the elements of the stack.
Ensure each operation runs in constant time complexity (O(1)).
Handle edge cases like empty stack appropriately.
Example: For input '5', '3 10', '5', '1', '2', '4', the output should be '10', '1'...
Determine if a given singly linked list of integers forms a cycle or not.
A cycle in a linked list occurs when a node's next
points back to a previous node in the ...
Detect if a singly linked list has a cycle using O(N) time complexity and O(1) space complexity.
Use Floyd's Tortoise and Hare algorithm to detect cycle in linked list
Maintain two pointers, slow and fast, moving at different speeds
If there is a cycle, the two pointers will eventually meet
If one of the pointers reaches the end of the list (null), there is no cycle
Round duration - 20 minutes
Round difficulty - Easy
Given a binary tree of integers, the task is to return the top view of the given binary tree. The top view of the binary tree is the set of nodes visible when viewed from the top.
...Return the top view of a binary tree given in level-order format.
Traverse the binary tree in level-order and keep track of the horizontal distance of each node from the root.
Use a map to store the nodes at each horizontal distance, and only keep the first node encountered at each distance.
Return the values of the nodes stored in the map in sorted order of their horizontal distance.
Example: For the given binary tree, th...
Given a singly linked list of integers and a reference to a node, your task is to delete that specific node from the linked list. Each node in the linked li...
Given a singly linked list of integers and a reference to a node, delete the specified node from the linked list.
Traverse the linked list to find the node to be deleted
Update the pointers to skip over the node to be deleted
Print the modified linked list after deletion
Tip 1 : Practice Questions as much as you can
Tip 2 : Do at least 2 projects
Tip 3 : Do practice a lot of questions on linked list and stacks as these are two most important data structures asked in the interview.
Tip 4 : Also, try to implement it yourself without seeing the solution.
Tip 5 : Also prepare for Computer Science subjects like Operating System, Database Management System, Computer Networks, etc. I prepared them through Coding Ninjas notes which were simpler and easy to understand.
Tip 1 : Keep your resume short and up to mark and check spellings before submitting it for the interview process.
Tip 2 : Have projects and internships on your resume
Tip 3 : Never lie in your resume
I applied via Recruitment Consulltant and was interviewed in Jul 2023. There were 3 interview rounds.
Arrays, basics. easy, some important topics in python and sql
I applied via Naukri.com and was interviewed in Feb 2022. There were 4 interview rounds.
Create a CRUD application
I applied via AmbitionBox and was interviewed in Dec 2021. There were 2 interview rounds.
based on 2 interview experiences
Difficulty level
based on 8 reviews
Rating in categories
Solution Engineer
121
salaries
| ₹5.5 L/yr - ₹13.7 L/yr |
Senior Solution Engineer
62
salaries
| ₹8.6 L/yr - ₹15.3 L/yr |
Technical Support Engineer
57
salaries
| ₹2.8 L/yr - ₹5.6 L/yr |
Technical Engineer
46
salaries
| ₹2.8 L/yr - ₹5.3 L/yr |
Software Development Engineer II
41
salaries
| ₹22 L/yr - ₹34.8 L/yr |
Chegg
Tekwissen
Softenger
Knight Frank