Filter interviews by
I was interviewed in Feb 2021.
Round duration - 120 minutes
Round difficulty - Easy
This was the first round and it consisted of MCQs and programming questions. This round was difficult.
You are provided with a string STR
of length N. The task is to find the longest palindromic substring within STR
. If there are several palindromic substring...
A thief plans to rob a store and can carry a maximum weight 'W' in his knapsack. There are 'N' items, with the i-th item weighing wi
and having a value vi
. Determine the max...
Approach: In the Dynamic programming we will work considering the same cases as mentioned in the recursive approach. In a DP[][] table let’s consider all the possible weights from ‘1’ to ‘W’ as the columns and weights that can be kept as the rows.
The state DP[i][j] will denote maximum value of ‘j-weight’ considering all values from ‘1 to ith’. So if we consider ‘wi’ (weight in ‘ith’ row) we can...
Given a Singly Linked List of integers, your task is to reverse the Linked List by altering the links between the nodes.
The first line of input is an intege...
One way is to use recursion to reverse the list. Divide the linked list in two halves, the first node and the rest of the list. Reverse the second half using recursion and append the first half, that is the first node at the end of the reversed linked list. Return the head of the reversed linked list.
Algorithm
Round duration - 90 minutes
Round difficulty - Hard
This round is last round in this round they give some coding questions as well as few questions they ask related to computer science main subjects. We have to correct all the questions in this round, to clear this round.
You are provided with two arrays ARR1
and ARR2
both having an equal length N
. Your objective is to compute the maximum value of the expression:
|ARR1[ i ] - AR...
We can use two nested loops to iterate through all the possible ‘N * N’ pairs of indexes ‘i’ and ‘j’ to obtain the given expression’s maximum value.
Tip 1 : Thorough with your details mentioned in your resume.
Tip 2 : Be confident
Tip 3 : Mention some good projects and internship on resume
Tip 4 : Practice atleast 200 to 250+ Data Structures and Algorithms Questions
Tip 1 : Mention projects which you can explain properly , don't copy someone else projects
Tip 2 : Having some achievements is plus point
Tip 3 : Resume should always be of 1 page (max 2)
Tip 4 : You can put links of your various online platforms profiles
Top trending discussions
Asking the dp and tree and other
I applied via campus placement at Anna University and was interviewed in Apr 2024. There were 3 interview rounds.
General topics were given
Curd operation with SQL connectivity
I applied via Job Fair and was interviewed in Jun 2023. There were 3 interview rounds.
Ms office,Core Java , Tally , C,
In my Opinion,view , If you ask me, As far as I can see/I am Concerned , It seems to me that , I think /feel/reckon/ belive , If you want my option , What we have to decide
I applied via campus placement at CDAC, Noida and was interviewed in Jan 2022. There were 4 interview rounds.
Best way to prefer java, core java and most imp spring boot because many of companies required spring boot now a days
Path variable is used to locate executable files while classpath variable is used to locate Java classes.
Path variable is used by the operating system to locate executable files.
Classpath variable is used by Java to locate classes and resources.
Path variable is system-specific while classpath variable is Java-specific.
Path variable is set by the user while classpath variable is set by the developer.
Example of path vari...
Enum is a special data type in Java used to define a set of constants.
Enums are used to represent a fixed number of values that do not change.
They are declared using the enum keyword.
Each enum constant is an object of the enum type.
Enums can have constructors, methods, and fields.
Example: enum Color { RED, GREEN, BLUE }
Enums can also have values associated with them, like Color.RED(255, 0, 0).
2 phase commit is a protocol used to ensure distributed transactions are either committed or rolled back.
Used in distributed systems where multiple databases are involved in a transaction
Ensures all databases either commit or rollback the transaction
Involves a coordinator and multiple participants
Coordinator sends a prepare message to participants, who respond with either commit or abort
If all participants respond with...
Yes, Java is completely object oriented.
Java is designed to be completely object oriented.
All code in Java is written inside classes and objects.
Java supports encapsulation, inheritance, and polymorphism.
Java does have some non-object oriented features like primitive data types.
However, even these can be treated as objects using wrapper classes.
Exception is an event that occurs during the execution of a program and disrupts the normal flow of instructions.
Exceptions are objects that are thrown at runtime when an abnormal condition occurs
Java provides a set of predefined exceptions that can be used to handle errors
Exceptions can be caught and handled using try-catch blocks
Unchecked exceptions are those that are not checked at compile-time, while checked except
I applied via Job Portal and was interviewed in Mar 2022. There were 2 interview rounds.
2 rounds easy
I applied via Campus Placement and was interviewed in Aug 2021. There were 5 interview rounds.
Switch case is used for multiple conditions while if else is for binary conditions. Sorting can be done using various algorithms.
Switch case is faster than if else for multiple conditions
If else is more readable for binary conditions
Sorting can be done using bubble sort, insertion sort, quick sort, etc.
Example code for bubble sort: for(i=0;i
Difference between compiler and interpreter with a coding challenge
Compiler translates the entire code into machine language before execution while interpreter translates line by line during execution
Compiler generates an executable file while interpreter does not
Compiler is faster but debugging is harder while interpreter is slower but debugging is easier
Coding challenge: Write a program to find the sum of two numbers
I applied via Naukri.com and was interviewed in Dec 2020. There were 3 interview rounds.
An object is an instance of a class that encapsulates data and behavior.
Objects have attributes (data) and methods (behavior).
Objects can interact with each other through method calls.
Objects can be created from classes.
Examples of objects include a car, a person, or a bank account.
Multi threading is the ability of a program to perform multiple tasks concurrently.
It allows for better utilization of CPU resources
It can improve program performance and responsiveness
Examples include web servers handling multiple requests simultaneously
It requires careful management of shared resources to avoid race conditions
Yes, we can create multiple objects in programming.
Objects are instances of a class.
We can create multiple objects of the same class.
Each object has its own set of instance variables and methods.
Objects can interact with each other through their methods.
Example: creating multiple instances of a 'Person' class for different people.
Encapsulation types are data, procedural and combination.
Data encapsulation hides data from outside world and provides access through methods.
Procedural encapsulation hides implementation details of a procedure.
Combination encapsulation is a mix of data and procedural encapsulation.
Examples include private variables in a class, access modifiers in Java, etc.
Data Scientist
9
salaries
| ₹6 L/yr - ₹19 L/yr |
Jr. Data Scientist
7
salaries
| ₹4 L/yr - ₹9.5 L/yr |
Business Analyst
6
salaries
| ₹5 L/yr - ₹11 L/yr |
Production Analyst
5
salaries
| ₹6 L/yr - ₹9 L/yr |
Backend Developer
4
salaries
| ₹6.2 L/yr - ₹7 L/yr |
Fractal Analytics
Tiger Analytics
Mu Sigma
LatentView Analytics