i
insightsoftware
Filter interviews by
Clear (1)
I applied via Campus Placement
3 coding questions were asked
40 mins of test with simple aptitude and reasoning problems
Top trending discussions
I applied via Naukri.com and was interviewed in Jan 2021. There were 3 interview rounds.
C# concepts including abstraction, interface, abstract method, abstract class, polymorphism, encapsulation, inheritance, and serialization.
Abstraction: hiding implementation details
Interface: defining a contract for behavior
Abstract method: method without implementation
Abstract class: class with one or more abstract methods
Polymorphism: ability of objects to take on multiple forms
Encapsulation: bundling data and behavi...
I was interviewed before Jan 2021.
Round duration - 60 minutes
Round difficulty - Medium
This was a written round. Proper code with correct syntax to be written on paper.
There were 4 questions to be solved in 1 hour. Some questions needed test cases and time complexity to be answered as well.
You are given two singly linked lists, where each list represents a positive number without any leading zeros.
Your task is to add these two numbers and return the sum as ...
Add two numbers represented as linked lists and return the sum as a linked list.
Traverse both linked lists simultaneously while keeping track of carry from previous sum
Handle cases where one linked list is longer than the other by padding with zeros
Create a new linked list to store the sum of the two numbers
Given an array ARR
of 'N' integers and an integer 'X', determine the minimum number of operations required to make the sum of removed elements fro...
Given an array of integers and a target sum, find the minimum number of operations to make the sum of removed elements equal to the target.
Iterate from both ends of the array, removing elements until the sum matches the target
Use a two-pointer approach to efficiently find the minimum number of operations
If achieving the target sum is not possible, return -1
You are provided with an integer array ARR
of size N
. You need to return an array PRODUCT
such that PRODUCT[i]
equals the product of all the elements of ARR
...
The problem requires returning an array where each element is the product of all elements in the input array except itself.
Iterate through the array twice to calculate the product of all elements to the left and right of each element.
Use two arrays to store the products to the left and right of each element.
Multiply the corresponding elements from the left and right arrays to get the final product array.
Handle integer ...
You are provided with a stack consisting of 'N' integers. The goal is to sort this stack in descending order by utilizing recursion.
Allowed Stack Operations:
is_empty(S) ...
Sort a stack in descending order using recursion without using loop constructs.
Implement a recursive function to sort the stack in descending order.
Use the provided stack operations to manipulate the stack.
Recursively pop elements from the stack, sort them, and push them back in descending order.
Handle base cases such as an empty stack or a single element stack.
Ensure the stack is sorted in descending order after the r...
Round duration - 60 minutes
Round difficulty - Easy
General questions based on resume, was asked to explain my internship project.
He asked questions on my written round. Asked me to find the bug in my code for 1st problem. He was extremely happy with me when I gave the correct answer.
He asked me for the code for the last problem since I hadn’t solved it.
Asked to reverse linked list using recursion, since I said I did by iteration earlier.
He had written code of second problem, I had to find bugs in it.
Discussion on quality engineering and developer profiles.
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.
Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.
Update the head of the reversed linked list as the last node encountered during the reversal process.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed before Jan 2021.
Round duration - 60 minutes
Round difficulty - Medium
Technical round that lasted for around 60 minutes. The interviewer asked questions on data structures and OOPS concepts.
Given a string STR
consisting of lowercase English letters, your task is to return all permutations of the given string in lexicographically increasing order.
Return all permutations of a given string in lexicographically increasing order.
Generate all permutations of the given string using backtracking.
Sort the permutations in lexicographical order.
Print the sorted permutations separated by space.
You are tasked with finding the greatest common divisor (GCD) of two given numbers 'X' and 'Y'. The GCD is defined as the largest integer that divides both of the...
Find the greatest common divisor (GCD) of two given numbers 'X' and 'Y'.
Implement a function to calculate GCD using Euclidean algorithm
Iteratively find the remainder of X divided by Y until Y becomes 0
The last non-zero remainder is the GCD of X and Y
C is a procedural language, C++ is an object-oriented language, and Java is a platform-independent language.
C is a procedural programming language, while C++ supports both procedural and object-oriented programming.
C++ is an extension of C with additional features like classes and inheritance.
Java is a platform-independent language that runs on a virtual machine and uses automatic memory management.
C is closer to the h...
The virtual keyword in C++ is used to declare a member function in a base class that can be overridden in derived classes.
Virtual functions allow for dynamic polymorphism in C++ by enabling late binding.
Virtual functions are declared in the base class with the 'virtual' keyword and can be overridden in derived classes.
When a derived class overrides a virtual function, the function in the derived class is called instead...
Round duration - 60 minutes
Round difficulty - Medium
Technical round that lasted for around 60 minutes. The interviewer asked questions on data structures and question related to cloud computing(cloud computing was listed on my resume) .
Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:
1. get(key)
- Return the value of the key if it exists in the cache; otherw...
Design a Least Recently Used (LRU) cache data structure that supports get and put operations with capacity constraint.
Implement a doubly linked list to keep track of the order of keys based on their recent usage.
Use a hashmap to store key-value pairs for quick access and update.
When capacity is reached, evict the least recently used item before inserting a new item.
Update the order of keys in the linked list whenever a...
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...
Delete a specific node from a singly linked list given the reference to the node.
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.
Round duration - 60 minutes
Round difficulty - Easy
Technical round that lasted for around 60 minutes. The interviewer asked questions on data structures and question related to networking.
Given a singly linked list with 'N' nodes containing integer values, your task is to sort the list using insertion sort and output the sorted list.
Insertion Sort is an al...
Implement insertion sort algorithm on a singly linked list.
Traverse the linked list and for each node, find its correct position in the sorted list.
Keep track of the current node and the previous node to perform the insertion.
Repeat this process until all nodes are sorted in the linked list.
Ensure to handle edge cases like empty list or list with only one node.
Given an array ARR
of size 'N', where each integer is in the range from 0 to N - 1, identify all elements that appear more than once.
Return the duplicate elements in any orde...
Find duplicates in an array of integers within a specified range.
Iterate through the array and keep track of the count of each element using a hashmap.
Return elements with count greater than 1 as duplicates.
Time complexity can be optimized to O(N) using a set to store duplicates.
Round duration - 40 minutes
Round difficulty - Easy
The Interviewer asked me questions to know more about me. He also asked a puzzle.
To determine the top 3 fastest horses out of 25, race horses in groups of 5 and keep track of the fastest horses in each race.
Divide the 25 horses into 5 groups of 5 horses each.
Race all 5 horses in each group, keeping track of the top 3 fastest horses in each race.
After 5 races, you will have the top 3 fastest horses from each group.
Race the top 3 horses from each group in a final race to determine the overall top 3 f
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed in Aug 2016.
Find a pair of integers in an array whose sum is equal to a given number.
Iterate through the array and for each element, check if the difference between the given number and the current element exists in the array.
Use a hash set to store the elements of the array for efficient lookup.
Return the pair of integers if found, otherwise return a message indicating no such pair exists.
The Lowest Common Ancestor (LCA) of two nodes in a binary tree is the deepest node that is a common ancestor of both nodes.
Start from the root node and traverse the tree to find the given nodes.
Store the paths from the root to each node.
Compare the paths to find the last common node, which is the LCA.
Implement a specialStack class with O(1) push, pop, and minimum element retrieval.
Use an additional stack to keep track of the minimum element at each step.
When pushing an element, compare it with the top of the minimum stack and update if necessary.
When popping an element, also pop from the minimum stack if the popped element is the current minimum.
Polymorphism is the ability of an object to take on many forms. Other OOPS concepts include inheritance, encapsulation, and abstraction.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Inheritance allows a class to inherit properties and methods from another class.
Encapsulation is the bundling of data and methods within a class, hiding the internal details.
Abstraction foc...
To design a website displaying top 1000 products with real-time rating updates, use a combination of backend and frontend technologies.
Implement a backend system to fetch and update product ratings from a database or API.
Use a frontend framework like React or Angular to create a dynamic user interface.
Implement pagination or lazy loading to handle the large number of products.
Optimize the website for performance by cac...
Find the point closest to a given point P among a million points.
Preprocess the million points to calculate their distances from P.
Store the distances and corresponding points in a data structure.
Sort the distances in ascending order.
Return the point corresponding to the smallest distance.
I was interviewed before Jan 2021.
Round duration - 60 minutes
Round difficulty - Medium
The interviewer grilled me completely in Java.
AtomicInteger is a class in Java that provides atomic operations on integers.
It is used for operations that need to be performed atomically, without interference from other threads.
Common methods include get(), set(), incrementAndGet(), decrementAndGet(), etc.
Example: AtomicInteger count = new AtomicInteger(0); count.incrementAndGet();
Collection Hierarchy in Java represents the relationship between various collection interfaces and classes.
Collection interface is the root interface in the Collection Hierarchy.
List and Set interfaces extend the Collection interface.
Map interface is not a subtype of Collection interface.
ArrayList, LinkedList, HashSet, and TreeSet are some of the classes that implement the Collection interfaces.
HashMap and TreeMap are
HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap uses an array of buckets to store key-value pairs.
The key is hashed to determine the index in the array where the value will be stored.
In case of hash collisions, a linked list or a balanced tree is used to store multiple values at the same index.
HashMap allows null keys and values.
Example: HashMap<...
Fail-fast iterators throw ConcurrentModificationException if the collection is modified while iterating. Fail-safe iterators do not throw exceptions and operate on a cloned copy of the collection.
Fail-fast iterators throw ConcurrentModificationException if the collection is modified while iterating.
Fail-safe iterators do not throw exceptions and operate on a cloned copy of the collection.
Fail-fast iterators are used in...
Different ways to traverse over a map in Java include using keySet(), entrySet(), and forEach() method.
Use keySet() method to iterate over keys in the map
Use entrySet() method to iterate over key-value pairs in the map
Use forEach() method to iterate over key-value pairs in the map
Round duration - 60 minues
Round difficulty - Medium
Questions based on data structures, OS and system design were asked in this round.
Given two sorted arrays A
and B
of sizes N
and M
, find the median of the merged array formed by combining arrays A
and B
. If the total number of elements, N + M
, is even, the m...
Find the median of two sorted arrays by merging them and calculating the median of the combined array.
Merge the two sorted arrays into one sorted array.
Calculate the median of the merged array based on the total number of elements.
If the total number of elements is even, take the mean of the two middle elements as the median.
Design a bus seat booking system.
Use a database to store seat availability and bookings
Implement a user interface for customers to select and book seats
Consider implementing a payment system for reservations
Allow for seat selection based on preferences such as window or aisle
Fragmentation in operating systems is the phenomenon where memory or disk space is divided into small chunks over time, leading to inefficient use of resources.
Fragmentation can occur in both memory (memory fragmentation) and disk space (disk fragmentation).
External fragmentation happens when free memory or disk space is broken into small pieces, making it difficult to allocate large contiguous blocks of memory or disk...
Memory management in operating systems involves allocation, deallocation, and optimization of memory usage.
Memory management is crucial for efficient utilization of system resources.
Operating systems use techniques like paging, segmentation, and virtual memory to manage memory.
Memory management also involves handling memory leaks, fragmentation, and ensuring data integrity.
Examples include malloc() and free() functions
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
based on 1 interview
Interview experience
Software Engineer
59
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
47
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Technical Support Engineer
28
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Consultant
25
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
18
salaries
| ₹0 L/yr - ₹0 L/yr |
SAP
Oracle
Microsoft Corporation
Salesforce