i
IBM
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
What people are saying about IBM
IBM interview questions for popular designations
Get interview-ready with Top IBM Interview Questions
Modify Dijkstra algorithm to find 3 shortest paths
Implement a modified version of Dijkstra's algorithm that keeps track of the 3 shortest paths
Use a priority queue to store the nodes and their distances from the source node
When a node is visited, update the distances of its neighbors and add them to the priority queue
Keep track of the 3 shortest paths using an array or a list
Terminate the algorithm when the 3 shortest ...
Check if a number is a power of 2 in one line of code.
Use bitwise AND operator to check if the number is greater than 0 and has only one bit set to 1.
If the number is a power of 2, it will have only one bit set to 1 in its binary representation.
Example: (n & (n-1)) == 0 will return true if n is a power of 2.
Floating point numbers are stored using a combination of a sign bit, an exponent, and a mantissa.
A floating point number is represented in binary form.
The first bit represents the sign of the number (0 for positive, 1 for negative).
The next few bits represent the exponent, which determines the scale of the number.
The remaining bits represent the mantissa, which contains the significant digits of the number.
The IEEE 754...
PID of a process can be generated using various commands in different operating systems.
In Linux, use the 'ps' command to get the process ID
In Windows, use the 'tasklist' command to get the process ID
In macOS, use the 'top' command to get the process ID
In Python, use the 'os.getpid()' function to get the process ID
To reverse a binary tree, swap the left and right subtrees recursively starting from the root node.
Start by swapping the left and right subtrees of the root node
Recursively swap the left and right subtrees of each node
Stop when you reach the leaf nodes
Example: 1 1 / \ / \ 2 3 3 2
Example: A A / \ / \ B C C B / \ / \ / \ / \ D E F G G F
Some of the top questions asked at the IBM interview for freshers -
The duration of IBM interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 117 interviews
Interview experience
based on 21.8k reviews
Rating in categories
Gurgaon / Gurugram,
Delhi/Ncr
0-1 Yrs
₹ 1-2.75 LPA
Application Developer
11.7k
salaries
| ₹5.5 L/yr - ₹24 L/yr |
Software Engineer
5.5k
salaries
| ₹5.1 L/yr - ₹22.5 L/yr |
Advisory System Analyst
5.2k
salaries
| ₹9.4 L/yr - ₹27 L/yr |
Senior Software Engineer
4.8k
salaries
| ₹8 L/yr - ₹30 L/yr |
Senior Systems Engineer
4.6k
salaries
| ₹5.7 L/yr - ₹20.4 L/yr |
Oracle
TCS
Cognizant
Accenture