Filter interviews by
JIT compiler compiles code at runtime for faster execution.
JIT stands for Just-In-Time compiler.
It compiles code during runtime instead of ahead of time.
This results in faster execution of the code.
JIT is commonly used in Java and .NET environments.
Example: Java Virtual Machine (JVM) uses JIT to compile Java code.
JIT can also optimize code based on runtime conditions.
No, a source file cannot be saved without a name.
A file must have a name to be saved on a file system.
The name is used to identify and access the file.
Attempting to save a file without a name will result in an error.
Java uses Unicode system to support internationalization and to represent characters from different languages.
Unicode provides a unique code point for every character, making it easier to represent characters from different languages.
Java's support for Unicode allows developers to create applications that can handle text in multiple languages.
Unicode also helps in sorting and searching text in different languages.
For e...
Top trending discussions
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
I usually use the MVC (Model-View-Controller) design pattern in my projects.
Separates the application into three main components: Model (data), View (UI), and Controller (logic)
Promotes code reusability, modularity, and maintainability
Examples: Laravel framework in PHP, Spring framework in Java
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a fixed-size collection of elements of the same data type, while ArrayList is a dynamic-size collection that can grow or shrink.
Arrays can store primitive data types and objects, while ArrayList can only store objects.
Arrays require a specified size during initialization, while ArrayList can dynamically resize itself.
...
I applied via Job Fair and was interviewed in Nov 2023. There were 2 interview rounds.
Customer service is an essential element in software development.
Customer service involves providing support and assistance to users of software applications.
It includes addressing user queries, resolving issues, and ensuring customer satisfaction.
Software developers may interact with customers through various channels like email, phone, or live chat.
Good customer service can lead to positive user experiences and incre...
To burn a node in a binary tree, we mark the node as burned and then recursively burn its left and right children.
Mark the current node as burned
Recursively burn the left child
Recursively burn the right child
posted on 30 Aug 2016
I applied via campus placement at Indian Institute of Technology (IIT), Chennai
I applied via Newspaper Ad and was interviewed in Jun 2024. There was 1 interview round.
Duration 2hr , DSA all topics , Leetcode
I applied via Campus Placement and was interviewed in Feb 2023. There were 2 interview rounds.
4 interview question
Find minimum cost to make heights of N piles of coins equal by adding or removing one coin from a pile with different costs.
Use dynamic programming to keep track of the minimum cost for each pile height.
Consider the cost of adding and removing coins from each pile.
Iterate through all possible combinations of adding and removing coins to find the minimum cost.
I was interviewed in Mar 2022.
Round duration - 120 Minutes
Round difficulty - Hard
Online Test Platform - HackerRank
Test Access Window – between 10:00 AM to 6:00 PM
Online Test Pattern –
Total Duration of Test – 120 mins
Total No. of Sections - 5
Section 1 – One Coding Question - Easy difficulty (20 mins)
Section 2 – One Coding Question - Medium difficulty (30 mins)
Section 3 – One Coding Question - Medium difficulty (30 mins)
Section 4 - Technical MCQs - 10 questions (20 mins)
Section 5 - Aptitude MCQs - 10 questions (20 mins)
Programming Sections (1, 2 and 3): This will have 3 coding questions with a time limit of 80 minutes. It is mandatory for you to attempt the 1st coding question before moving to the second question and third. You cannot revisit question/section once you proceed ahead
MCQ Sections (4 and 5): This will have 10 technical and 10 aptitude questions, with a time limit of 20 minutes each. Each correct answer will carry 2 marks and wrong answer will carry negative 0.5
Technical questions will cover Data structures & algorithms, Operating systems, Database systems, SQL and Networks.
Aptitude questions will cover Quantitative Aptitude, Problem solving and Logical & verbal Reasoning
Given an array 'ARR' of 'N' cubes, you need to construct towers such that each cube can either be placed on top of an existing tower or start a new one. The restriction is...
I stored the difference in heights.
Sorted this array
And filled the difference such that max length is observed.
Given an array ARR
of size N
and an integer K
, determine the minimum number of elements that must be removed from the array so that the difference between the maximum an...
We will first sort the given array. Then we will start traversing the array using two variables, say ‘i’ and ‘j,’ using a nested loop, where j will be used to fix the maximum element, and i will be used to fix the minimum element and check if arr[j] - arr[i] <= K.
Algorithm:
Aragorn, an influential ruler, aspires to expand his power by conquering more kingdoms. There are 'N' kingdoms numbered from 0 to N-1, forming a tree structur...
The question becomes easy if you are able to figure out that only the decision of selecting the first kingdom to conquer will be sufficient to determine the final answer. Let’s start with something more intuitive rather than directly jumping to the final answer. If you pick a random kingdom in your first turn, in subsequent turns both you and Aragorn you will greedily conquer all the kingdoms...
Round duration - 60 Minutes
Round difficulty - Medium
They called and asked me to choose a date and time I would be free in the upcoming week for my interview.
I chose 10th March 5 pm.
Interviewer was pretty friendly. Started with some resume based questions. Asked me OS, DBMS and JAVA based questions. A coding question was asked to code. Asked me OOPS related questions too.
Given an integer array ARR
and an integer K
, identify the K
most frequent elements within ARR
. Return these elements sorted in ascending order.
Prerequisite: Quick Sort
In this approach, we will try to divide the problem at every step into a smaller problem. We know that the kth top frequent element is (n - k)th less frequent. So, we will do a partial sort from the less frequent element to the most frequent one, till (n - k)th less frequent element takes place (n - k) in a sorted array. To do so, we will use quickselect. Quickselect is an algor...
Tip 1 : Learn the OS and DBMS fundamentals.
Tip 2 : Practice a wide variety of questions on Leetcode
Tip 3 : Do practice aptitude. It will help in OA
Tip 1 : Use OverLeaf format to make resume
Tip 2 : Do not mention any skill you aren't comfortable with. A lot of the times they ask you questions based on what is written in your resume.
I was interviewed in Aug 2021.
Round duration - 90 Minutes
Round difficulty - Medium
This round had 3 coding questions. The first two were of moderate level and the third one was a bit hard and was related to Dynamic Programming.
Given a linked list where each node contains a single digit, your task is to construct the largest possible number using these digits.
Print ...
Approach :
1) Traverse the linked list from start to end and make frequency array of all digits (0-9) present in the linked list.
2) Make the string starting from the maximum of digits (0-9) present in the linked list i.e first append all the 9’s in the answer string then append all the 8’s at the end of the answer string so on for all the other digits in the decreasing order.
3) Finally, return the formed ans...
You are given an array/list CHOCOLATES
of size 'N', where each element represents the number of chocolates in a packet. Your task is to distribute these chocolates among 'M'...
Approach :
1) Suppose the given array is ‘CHOCOLATES’.
2) Sort the given array.
3) Find the subarray with the minimum difference of the last and first elements.
4) To store minimum difference we use a variable (say, ‘minVal’) and the initial value is ‘INFINITE’
5) Run a loop from 0 to ‘N’ - ‘M’ - 1(say, iterator ‘i’)
6) If 'CHOCOLATES'[i] - ‘CHOCOLATES’[i - M + 1] is less than ‘minVal’ then update ‘minVal’ with ‘CHOCOL...
Given three strings A, B, and C, determine the length of the longest common subsequence present in all three strings.
A subsequence is derived by dele...
Approach :
1) The idea is to create a 3-D DP of size n*m*k.
2) Initially, all the elements of the DP table will be 0.
3) Now, the value DP[i][j] means denotes the length of the longest common sub-sequence of string A[0..i], B[0..j], and C[0..k].
4) The detailed algorithm to fill the DP table will be as follows:
Loop 1: For i = 1 to N:
Loop 2: For j = 1 to M:
Loop 3: For k = 1 to K:
if(A[i] == B[j] == C[k] ), DP[i][j][k] ...
Round duration - 60 Minutes
Round difficulty - Medium
This round had 2 questions of DS/Algo to solve under 60 minutes and 2 questions related to Operating Systems.
Imagine you are Harshad Mehta's friend, and you have been given the stock prices of a particular company for the next 'N' days. You can perform up to two buy-and-sell ...
Approach :
1) Initialize variables 'FIRSTBUY' as the minimum negative value, ‘FIRSTSELL’ as 0, ‘SECONDBUY’ as the minimum negative value, and ‘SECONDSELL’ as 0.
‘FIRSTSELL’ will be the profit after the first transaction and ‘SECONDSELL’ will be the profit after the second transaction.
2) For ‘i’ in range days:
2.1) Maximise 'FIRSTBUY' as max( 'FIRSTBUY' , - ‘PRICES[i]’), this is the amount left after your first buy.
2...
You are provided with an array called HEIGHT
that contains the heights of 'N' people standing in a queue. For each person in the array, compute the number of individuals on t...
Approach : This question was similar to the famous problem "Count Inversions" and so I thought of applying Merge Sort here.
1) By modifying the merging array part of merge sort, we can calculate the required ans.
2) During merging of two halves, when the higher index element is less than the lower index element, it represents that the higher index element is smaller than all the elements after that lower index beca...
Process : A process is an instance of a program that is being executed. When we run a program, it does not execute
directly. It takes some time to follow all the steps required to execute the program, and following these execution
steps is known as a process.
A process can create other processes to perform multiple tasks at a time; the created processes are known as clone
or child process, and the main process is known as ...
There are two main types of semaphores i.e. counting semaphores and binary semaphores.
1) Counting Semaphores :
These are integer value semaphores and have an unrestricted value domain. These semaphores are used to
coordinate the resource access, where the semaphore count is the number of available resources. If the resources
are added, semaphore count automatically incremented and if the resources are removed, the count i...
Round duration - 60 Minutes
Round difficulty - Medium
This round had 3 coding questions in which I first had to explain my approach with proper complexity analysis and then code up the solution. I found the first problem to be a bit on the harder side compared to the rest of the 2 problems.
Given a matrix of non-negative integers of size 'N x M', where 'N' and 'M' denote the number of rows and columns respectively, find the length of t...
Approach :
1) We maintain a 2D array dp of size N*M. Since the increasing path can start from any point in the matrix, we use dp[i][j] to store the length of the longest increasing path starting from location (i, j). This ensures that we do not recalculate a visited location.
2) Now, we perform a DFS from each cell with the current cell as (x, y). We compare the cells in the four directions (dx, dy) and skip ...
You are presented with a circular track consisting of several petrol pumps. Each petrol pump is indexed from 0 to N-1 and offers certain attributes:
Approach :
1) We can choose every index to be our starting point and check whether we can complete the round trip starting from that index.
2) For each start point, we will run a loop starting from this index. If at any point, petrol available in the truck is not sufficient to move on to the next petrol pump, we know this is a bad starting point. So, we break the loop and try the same for the next start point.
3) As...
Consider 'n' carrots numbered from 1 to 'n' and 'k' rabbits. Each rabbit jumps to carrots only at multiples of its respective jumping factor Aj (i.e., Aj, 2Aj, 3Aj, ...), for all ra...
Approach :
1) Create a boolean array of size n + 1 with default value false.
2) Run a loop from i=0 to k. If A[i] is marked true then we don’t need to traverse its multiples as they have been already traversed. Else Traverse all multiples of A[i] less than n. The carrots which are visited mark it true.
3) After doing traversal count the values from 1 to n with false values. Return this value.
TC : O(N * log(max(A[i])
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 4 reviews
Rating in categories
Software Developer
15
salaries
| ₹4.1 L/yr - ₹11.4 L/yr |
Software Engineer
12
salaries
| ₹4.9 L/yr - ₹11 L/yr |
Technical Lead
8
salaries
| ₹14 L/yr - ₹22 L/yr |
Associate Software Developer
8
salaries
| ₹3.4 L/yr - ₹4 L/yr |
Senior Software Engineer
7
salaries
| ₹11.5 L/yr - ₹25.4 L/yr |
Infosys
TCS
Wipro
HCLTech