125 questions · from 19 interviews · 6 asked more than once

IBM interview questions

Every question candidates reported from their IBM interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.

IBM coding and DSA questions

  1. 01

    Reverse Linked List

    Given the head of a singly linked list, reverse the list, and return the reversed list.

    Medium · Asked 2 times · From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  2. 02

    Stars Triangle Pattern

    Write code or logic to generate a stars triangle pattern.

    Asked 2 times · From IBM | Associate Consultant, India | Nov, 2022 [Offer]

  3. 03

    Knockout Tournament Matches

    Given 100 players in a knockout tournament, determine how many matches will be played until a single winner is decided.

    Asked 2 times · From IBM | Associate Consultant, India | Nov, 2022 [Offer]

  4. 04

    Print Even and Odd Numbers Using Two Goroutines Alternately

    Write a Go program that creates two goroutines: one prints even numbers and the other prints odd numbers. The two goroutines must coordinate so that the output sequence alternates between odd and even numbers (e.g., 1, 2, 3, 4, ...). Use channels or other…

    Medium · From IBM Senior Cloud & AI Engineer | Bengaluru | Ghosted

  5. 05

    Longest Substring Without Repeating Characters

    Given a string s, find the length of the longest substring without repeating characters. Example: - Input: "abcabcbb" - Output: 3 - Explanation: The answer is "abc", with the length of 3. The problem is typically solved using a sliding window technique.

    Medium · From IBM Senior Cloud & AI Engineer | Bengaluru | Ghosted

  6. 06

    Merge Two Sorted Lists (Debug)

    Debug an existing implementation that merges two sorted singly linked lists into a single sorted list.

    Easy · From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  7. 07

    Longest Palindromic Substring

    Given a string s, return the longest palindromic substring in s.

    Medium · From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  8. 08

    Find Strictly Increasing Contiguous Slope of Size K

    Given an integer array yCoordinates where yCoordinates[i] represents the Y‑coordinate at X‑coordinate i. Find the number of strictly increasing contiguous sub‑arrays (slopes) of length exactly K. Example Input: yCoordinates = [6,5,7,8,3,5,6], K = 3 Points:…

    From IBM Coding Assessment 2 - On campus

  9. 09

    Make the Array Alternating in Parity

    Given an array of positive integers, find the minimum number of operations required to make the array alternate in parity. The final array can follow either pattern: Odd, Even, Odd, Even,... or Even, Odd, Even, Odd,... In one operation you may replace any…

    From IBM Online Assessment -On Campus-2 Coding Problems

  10. 10

    Maximum Number of Valid Pairs

    Given two arrays arr1 and arr2 and an integer d, form the maximum number of pairs (arr1[i], arr2[j]) such that arr1[i] <= arr2[j] <= arr1[i] + d. Each element can be used in at most one pair. Constraints: 1 <= arr1.size(), arr2.size() <= 10^5, 1 <= d <= 10^5.

    From IBM Online Assessment -On Campus-2 Coding Problems

  11. 11

    Similar Strings Based on Character Frequency Difference ≤ 3

    You are given two arrays of strings, s and t, each of length n. Each pair s[i] and t[i] contains two lowercase English strings. Two strings are considered similar if, for every lowercase English letter from 'a' to 'z', the absolute difference between the…

    From IBM Coding Assessment Question | Similar Strings Based on Character Frequency Difference ≤ 3

  12. 12

    Maximize Rental Revenue

    In a cloud computing platform, there are $n$ virtual machine (VM) types. The number of available instances for each type is given in an array vmStock of size $n$. Each customer rents exactly one VM. The price paid is the current available instance count of…

    From IBM India Online Assessment (OA) | Application developer-Cloud fullstack

  13. 13

    plusMult (pluwult)

    Given an array $A$ of integers, determine whether the array is ODD, EVEN, or NEUTRAL using the following calculations (the symbol % denotes the modulo operator): 1. Compute $R{\text{even}}$ using elements at even indices (0,2,4,…): start with $A[0]$,…

    From IBM India Online Assessment (OA) | Application developer-Cloud fullstack

  14. 14

    Count Ideal Numbers in Range

    An ideal number is defined as 3^x · 5^y where x and y are non‑negative integers (≥ 0). Given two integers low and high, count how many ideal numbers lie in the inclusive range [low, high].

    From IBM (Application Developer-Cloud FullStack) - Coding Assesment tricky question

  15. 15

    Max Consecutive All Machines Respond 'Y'

    You are given a list of strings that represent a set of requests sent by different machines at particular points. An example: For 3 machines this would be the result of five requests. ["YYN", "NNN", "YNY", "YYY", "YYY"] We want to find the max amount of times…

    Easy · From IBM AI Developer Entry Level Interview Questions - Real REST API Question

  16. 16

    Max Subarray with Equal 0s/1s and Prefix Condition

    You are given an array with only 0 and 1. You have to return the length of the maximum subarray that satisfies the following 2 conditions: No. of 0's and No. of 1's should be equal. Prefix of the subarray should never have the No. of 0's more than No. of 1's.…

    From IBM ASE Coding Interview

  17. 17

    Count Unstable Processes

    You are given Process, its timestamp, and its limit. You are to find the No. of Unstable processes and return it. A process is considered Unstable if the process has atleast one increasing and atleast one decreasing limit according to the timestamps.…

    From IBM ASE Coding Interview

  18. 18

    Maximize Decryption Value

    The actual question was 'Maximize Decryption Value'. The author noted that LeetCode 239 (Sliding Window Maximum) provides useful strategies for this type of problem, suggesting it involves sliding window techniques.

    From IBM (OA)

  19. 19

    Maximum Distinct Split Sum

    The actual question was 'Maximum Distinct Split Sum'. The author noted that LeetCode 410 (Split Array Largest Sum) provides useful partitioning logic when adapted for distinct counts, suggesting it involves partitioning and possibly dynamic programming or…

    From IBM (OA)

  20. 20

    API Rate Limiting System

    You are tasked with designing an API rate-limiting system that processes incoming requests while enforcing request limits. Given an array of domain requests, each request occurs at a specific second. The API gateway applies the following rate limits: - A…

    Hard · From IBM CODING ASSESSMENT - IBM US - Standard - Data Science

  21. 21

    Longest Bitonic Subarray

    A bitonic sequence is a sequence of numbers that first increase (non-decreasing) and then decreases (non-increasing). Given an array of integers, find the length of the longest subarray that is bitonic in nature. Input: arr =[10,8,9,15,12,6,7] Output: 5…

    From IBM | OA | Bitonic Sequence

  22. 22

    Repeated DNA Sequences

    Given a string s that represents a DNA sequence, return all the 10-letter-long sequences (substrings) that occur more than once in a DNA molecule. You may return the answer in any order.

    Medium · From IBM || 6 rounds || Interview Experience || On Campus

  23. 23

    Single Element in a Sorted Array

    You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. Find this single element.

    From IBM || 6 rounds || Interview Experience || On Campus

  24. 24

    Searching and Sorting Techniques

    Explain any one searching technique, such as Binary Search Algorithm, and any sorting technique, such as Bubble Sort, or any other of your choice.

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  25. 25

    Types of Time Complexities

    What are the different types of time complexities (e.g., O(1), O(n), O(log n))?

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

8 more in the IBM write-ups.

IBM system design questions

  1. 01

    Microservices vs. Monolithic Architecture

    Which one is better: microservices or monolithic architecture? Justify your answer.

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  2. 02

    Journey of a Web Request (www.ibm.com)

    Describe the entire process that occurs from the moment a user types 'www.ibm.com' into a web browser and presses enter, until the webpage is displayed. Cover aspects like DNS resolution, TCP/IP, HTTP, and web server interaction.

    From IBM ISDL | On Campus | 2024

  3. 03

    Purpose of Docker

    Explain why Docker is widely used in modern software development and deployment, highlighting its key benefits.

    From IBM ISDL | On Campus | 2024

  4. 04

    Docker Image Concepts

    Define what a Docker image is, how it functions as a lightweight, standalone, executable package of software, and provide examples of common Docker images.

    From IBM ISDL | On Campus | 2024

  5. 05

    Docker Working Directory

    Explain the concept of a working directory within a Docker container and differentiate its configuration from simply using the cd command to change directory inside the container.

    From IBM ISDL | On Campus | 2024

  6. 06

    Port Forwarding

    Explain the concept of port forwarding, particularly in the context of networking and containerization (like Docker).

    From IBM ISDL | On Campus | 2024

  7. 07

    Purpose of Kubernetes (K8s)

    Explain the reasons behind the widespread adoption of Kubernetes (K8s) for container orchestration, detailing its benefits and use cases.

    From IBM ISDL | On Campus | 2024

  8. 08

    Minimum Resource Allocation in VM

    Explain strategies and considerations for allocating the minimum required resources (CPU, RAM, storage) to a Virtual Machine (VM) to ensure optimal performance without over-provisioning.

    From IBM ISDL | On Campus | 2024

IBM behavioural and HR questions

  1. 01

    Why IBM?

    Why are you interested in working at IBM, and what specific aspects of the company or its work attract you?

    Asked 2 times · From IBM ISDL | On Campus | 2024

  2. 02

    Strengths and Weaknesses

    Discuss your main strengths and weaknesses relevant to this role and how you address them.

    Asked 2 times · From IBM ISDL | On Campus | 2024

  3. 03

    Team Member Conflict Resolution

    Tell me about a time when a team member wasn’t cooperating on a project. What did you do?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  4. 04

    Helping a Friend Situation

    Describe a situation where you helped a friend?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  5. 05

    Tell Me About Yourself

    Tell me about yourself?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  6. 06

    Motivation for AI & ML Specialization

    Why AI & ML specialization?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  7. 07

    Internship Experience and Challenges

    Explain your internship experience and challenges?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  8. 08

    Project Walkthrough and Contribution

    Walkthrough of your projects, team size, your contribution?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  9. 09

    First Interview & Learnings

    Is this your first interview? What did you learn from past interviews?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  10. 10
  11. 11

    Five Year Plan

    Where do you see yourself in 5 years?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  12. 12

    Contribution to Role

    What do you want to contribute to this role?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  13. 13
  14. 14

    About IBM and its Achievements

    What do you know about IBM? Please explain some of IBM's key achievements.

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  15. 15

    Technical Interests/Domain

    What are your particular interests or domains in technology?

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  16. 16
  17. 17
  18. 18

    Greatest Life Moment

    Describe the greatest moment in your life.

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  19. 19

    Favorite Book and Writer

    What is your favorite book and who is your favorite writer?

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  20. 20
  21. 21
  22. 22

    Questions for Interviewer

    Do you have any questions for me?

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  23. 23

    Coding Proficiency

    How would you rate yourself in coding, and in which programming language?

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  24. 24

    Programming Language Choice

    Why did you choose that particular programming language over others?

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  25. 25

    Ethical and Privacy Concerns in AI/ML

    Discuss the significant privacy and ethical concerns that arise with the development and deployment of Artificial Intelligence and Machine Learning systems.

    From IBM ISDL | On Campus | 2024

6 more in the IBM write-ups.

IBM other questions

  1. 01

    Multiprocessing vs Multithreading

    Explain the difference between multiprocessing and multithreading.

    Asked 2 times · From IBM | Associate Consultant, India | Nov, 2022 [Offer]

  2. 02

    Linux inotify

    What is Linux inotify , and where have you used it? What happens if inotify generates duplicate notifications?

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  3. 03

    Kubernetes vs OKE

    What is the difference between Kubernetes and Oracle Kubernetes Engine (OKE)?

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  4. 04

    Helm

    What is Helm and how do Helm charts help in Kubernetes deployments?

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  5. 05

    REST vs gRPC

    Compare REST and gRPC in terms of design, performance, and use cases.

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  6. 06

    TLS vs mTLS

    Explain the differences between TLS and mutual TLS (mTLS) and their typical usage scenarios.

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  7. 07

    Certificate Verification

    How does certificate verification work in a TLS handshake?

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  8. 08

    Browser Certificate Warning

    Why does a browser sometimes show a certificate warning with an Advanced/Proceed option?

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  9. 09

    Vector Database

    What is a vector database, where have you used it, and how does semantic similarity work?

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  10. 10

    Case Sensitivity in Vector Search

    How would a system distinguish between Saswat and saswat, and determine which is more relevant in a vector similarity search?

    From IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected

  11. 11

    Highest Rated Movie by Genre via REST API

    You are given a URL format which gets several bits of information. http://api.notrealwebsite.xyz/movies/page/{insertNumHere} The insertNumHere will give you the data on specified page number. The API will return the following. "currentPage" : Gives current…

    Medium · From IBM AI Developer Entry Level Interview Questions - Real REST API Question

  12. 12

    AI and Job Displacement

    Can AI replace human jobs?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  13. 13

    Java vs Python Key Differences

    Java vs Python — key differences?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  14. 14

    Mutable vs Immutable Types (String Mutability)

    Mutable vs Immutable types — is String mutable?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  15. 15

    Python Data Structures: List, Tuple, Dictionary

    What are List, Tuple, and Dictionary in Python?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  16. 16

    SQL Joins: Types and Differences

    SQL Joins — Types and differences?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  17. 17

    SQL Multiple Joins Execution Order

    In what order are multiple joins executed (top-down or bottom-up)?

    From IBM ASE Interview Experience | On-Campus | 4 Rounds | Not Selected 😔

  18. 18

    Memory vs. Storage & Phone Details

    What is the difference between memory and storage? Also, what is the model of your phone? Explain its features and qualities.

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  19. 19
  20. 20

    Private vs. Hybrid Cloud

    What do you know about private and hybrid cloud? State the main differences between them.

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  21. 21

    Kubernetes and Orchestration

    What is Kubernetes, and what is orchestration in the context of container management?

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  22. 22

    Benefits of Cloud and VMs

    Why do we use cloud computing and virtual machines (VMs)?

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  23. 23

    Computer Network Layers

    Explain the different layers of the Computer Network (OSI/TCP-IP) model.

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  24. 24

    Software Development Life Cycle (SDLC)

    Explain the Software Development Life Cycle (SDLC).

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

  25. 25

    ASCII with Example

    Explain ASCII completely, providing an example.

    From IBM - Global Sales - Summer Intern Hiring | Interview Experience | On-campus | for Batch 2025

28 more in the IBM write-ups.

IBM interview questions FAQ

What questions are asked in IBM interviews?

Candidates reported 125 distinct questions across 19 IBM interviews. 33 coding and DSA questions, 8 system design questions, 31 behavioural and HR questions, 53 other questions.

Which IBM interview questions are asked most often?

The most repeated are "Reverse Linked List" (2 times), "Why IBM?" (2 times), "Strengths and Weaknesses" (2 times), "Stars Triangle Pattern" (2 times), "Multiprocessing vs Multithreading" (2 times).

How difficult are IBM interview questions?

Of the questions candidates rated, 25% were easy, 63% medium and 13% hard.