Filter interviews by
Linkedlist , graph and tree
I applied via Campus Placement and was interviewed before Sep 2023. There were 4 interview rounds.
Questions on data structure and algorithm
Merge sort is a divide and conquer algorithm that divides the input array into two halves, sorts them recursively, and then merges them back together in sorted order.
Divide the array into two halves
Recursively sort each half
Merge the sorted halves back together
I applied via Approached by Company and was interviewed before Dec 2022. There were 7 interview rounds.
Medium to hard questions were asked
The Buy stock sell problem involves finding the maximum profit that can be obtained by buying and selling stocks.
Iterate through the array of stock prices
Keep track of the minimum price seen so far
Calculate the profit by subtracting the minimum price from the current price
Update the maximum profit if the calculated profit is greater
Return the maximum profit
Gainsight interview questions for designations
I applied via Approached by Company and was interviewed before Dec 2022. There were 7 interview rounds.
Medium to hard questions were asked
The buy stock sell problem involves finding the maximum profit that can be made by buying and selling a stock at different prices.
Calculate the difference between each pair of prices in the array
Find the maximum subarray sum to get the maximum profit
Consider edge cases like when prices are decreasing or all prices are the same
I applied via Approached by Company and was interviewed in Feb 2022. There were 2 interview rounds.
Print the nodes at the boundaries of a binary tree (leaf nodes + top view).
Traverse the tree in pre-order and keep track of the level of each node
Add the leftmost and rightmost nodes of each level to the result
For top view, traverse the tree in level-order and add the first node of each level to the result
Find minimum bombs to clear matrix by cascading impact to adjacent cells with value 1 greater than the bombed cell.
Create a 2D matrix of integers
Iterate through each cell and drop a bomb, then check its adjacent cells
If an adjacent cell has value 1 greater than the bombed cell, drop a bomb on that cell as well
Repeat until no more cells can be bombed
Count the number of bombs dropped to clear the matrix
Dependency Injection & IOC in Spring
Dependency Injection is a design pattern that allows objects to be loosely coupled and easily testable
In Spring, IOC (Inversion of Control) is used to manage dependencies and inject them into objects at runtime
IOC container in Spring is responsible for creating and managing objects and their dependencies
Spring supports different types of dependency injection such as constructor injec
I appeared for an interview before Nov 2020.
posted on 14 Mar 2015
Java is an object-oriented language while C is a procedural language.
Java is platform-independent while C is platform-dependent.
Java has automatic garbage collection while C requires manual memory management.
Java has built-in support for multithreading while C requires external libraries.
Java has a larger standard library compared to C.
Java is more secure than C due to its strong type checking and exception handling.
C ...
Aggregation functions are used to perform calculations on groups of data in a database.
Aggregation functions include COUNT, SUM, AVG, MAX, and MIN.
They are used with the GROUP BY clause to group data based on a specific column.
COUNT function returns the number of rows in a table or the number of non-null values in a column.
SUM function returns the sum of values in a column.
AVG function returns the average of values in ...
Two ways to write a sentence in mirror image form in Java: reverse string function and array conversion.
Use the reverse() method of the String class to reverse the sentence
Convert the sentence to a character array, then swap the first and last characters, second and second-to-last characters, and so on until the middle is reached
Example: 'Hello World' becomes 'dlroW olleH'
Static is used in public static void main to allow the method to be called without creating an instance of the class.
Static methods belong to the class and not to any instance of the class.
The main method is the entry point of a Java program and needs to be called without creating an object of the class.
The static keyword allows the main method to be called directly from the class, without creating an instance of the c...
Abstract classes, interfaces, and enums provide abstraction and modularity in Java.
Abstract classes provide a partial implementation of a class and cannot be instantiated.
Interfaces define a set of methods that a class must implement and can be used for multiple inheritance.
Enums provide a set of named constants.
All three are used for abstraction and modularity in Java.
Abstract classes and interfaces are used for polym...
Object-oriented software engineering is a framework for designing and developing software using objects.
Object-oriented software engineering is a methodology for designing and developing software using objects.
It involves creating classes and objects that encapsulate data and behavior.
Frameworks are pre-built structures that provide a foundation for building software applications.
Frameworks can include libraries, APIs,...
Java is an object-oriented language with features like inheritance, encapsulation, and polymorphism.
Inheritance allows classes to inherit properties and methods from other classes.
Encapsulation hides the implementation details of a class from other classes.
Polymorphism allows objects to take on multiple forms or behaviors.
Java also supports abstraction, interfaces, and exception handling.
Example: class Car extends Vehi...
Normalization is a process of organizing data in a database to reduce redundancy and dependency.
Normalization is used to eliminate data redundancy and improve data integrity.
It involves dividing a database into two or more tables and defining relationships between them.
There are different levels of normalization, such as first normal form (1NF), second normal form (2NF), and so on.
Normalization helps in efficient data ...
ADBMS stands for Advanced Database Management System which is an extension of DBMS with additional features.
ADBMS has advanced features like data mining, data warehousing, and online analytical processing.
ADBMS is used for handling large and complex data sets.
DBMS is a basic system for managing data and is used for small and simple data sets.
DBMS does not have advanced features like ADBMS.
Examples of ADBMS are Oracle, ...
I am a software engineer with 5 years of experience in developing web applications.
Proficient in programming languages such as Java, Python, and JavaScript
Experience in developing RESTful APIs and microservices
Familiarity with front-end technologies such as HTML, CSS, and React
Strong understanding of database management systems like MySQL and MongoDB
Experience in Agile development methodologies
I want to gain practical experience and contribute to the industry while also learning on the job.
I believe that hands-on experience is invaluable in the software engineering field
I am eager to apply my skills and knowledge to real-world projects
I am excited to work with a team and learn from experienced professionals
I am not currently pursuing post-graduation as I feel that gaining industry experience is more importan
I appeared for an interview in Sep 2019.
Some of the top questions asked at the Gainsight Software Engineer interview -
based on 6 interviews
1 Interview rounds
based on 12 reviews
Rating in categories
Software Engineer
107
salaries
| ₹10 L/yr - ₹22 L/yr |
Senior Software Engineer
80
salaries
| ₹13.5 L/yr - ₹25.5 L/yr |
Associate Software Engineer
44
salaries
| ₹8 L/yr - ₹16 L/yr |
Lead Software Engineer
26
salaries
| ₹24 L/yr - ₹40.5 L/yr |
Senior Solution Engineer
25
salaries
| ₹12.5 L/yr - ₹20.5 L/yr |
Xoriant
Photon Interactive
CitiusTech
Iris Software