IBM Coding Interview Questions
15 coding questions reported by candidates who interviewed at IBM, out of 17 IBM questions we track. They average 2.7/5 difficulty (medium). Most common topics: Hashmap, Array, Greedy, Simulation. 8 were reported asked within the last year, most recently in April 2026.
Practice IBM questions →Difficulty
- 2/5 — easy5
- 3/5 — medium10
Asked for SWE (15), Infra (4), MLE (2)
Reported IBM coding questions
.NET OA: 3^x * 5^y Count and Decreasing Subarrays
2/5Featured in an IBM technical screening, this dual-part coding challenge tests your capability to handle mathematical number generation and sequence analysis. The first portion requires identifying integers expressible through specific exponential factors within a given numeric range while preventing overflow errors. The second part focuses on scanning an array to count contiguous segments meeting strict descending criteria. Mastering these tasks demands solid arithmetic reasoning and linear scan techniques. Access to the full problem description and complete model solutions requires a subscription.
asked April 2026MathArraySimulationMinimum Length Subarray with K Distinct Numbers
3/5This coding challenge, featured in interviews at IBM, asks developers to find the shortest contiguous segment within a numeric sequence that contains a specified threshold of distinct values. Candidates must efficiently track element frequencies and dynamically adjust window boundaries to isolate the optimal subsegment. The task evaluates sliding window techniques and frequency map management for sequence analysis. View the full problem description and detailed algorithmic solution by securing a subscription.
asked March 2026Sliding WindowHashmapArrayMaximum Concurrent Processes / Meeting Rooms
3/5This classic scheduling puzzle, commonly encountered in IBM technical interviews, asks you to determine the peak overlap among a collection of time intervals with closed boundaries. Whether framed as managing concurrent resource requirements or calculating minimum meeting rooms, you must track simultaneous events efficiently as time progresses. The core task evaluates your ability to handle overlapping temporal ranges and find the maximum cardinality at any single point. Access to the full problem breakdown and verified model code requires a subscription.
asked February 2026Interval AggregationIntervalsSortingDevSecOps Kubernetes / CI-CD Technical Screen
3/5This IBM technical screen evaluates foundational cloud-native infrastructure skills, covering container orchestration, continuous deployment pipelines, and Linux networking diagnostics. Candidates must demonstrate deep familiarity with Kubernetes cluster troubleshooting, pod lifecycle management, and infrastructure automation tools commonly used in modern DevOps environments. The discussion also touches upon database reliability and enterprise networking principles. Access the complete technical breakdown and expert guidance by purchasing a subscription.
asked February 2026Cs FundamentalsSRETroubleshootingMaximum Palindromes After Cross-String Swaps
3/5Explore advanced string manipulation and global character redistribution through this intriguing interview problem reported at IBM. The challenge evaluates your analytical thinking regarding character frequency distribution, symmetry conditions, and how global swaps can maximize symmetrical outcomes across an array of texts. You will develop a deeper intuition for combinatorial reasoning and state transformation in string processing. The complete problem statement, mathematical insights, and model solution require an active subscription.
asked February 2026StringHashmapGreedyMinimum Insertions to Form Repeated abc Pattern
2/5This string manipulation problem, highlighted in IBM technical screenings, requires you to calculate the fewest character additions necessary to transform an arbitrary lowercase string into a repeating sequence of a specific pattern. You must preserve the relative order of the original characters without relying on deletion or replacement operations. The challenge tests your pattern-matching logic and sequential state tracking to count missing components accurately. To access the full problem details and comprehensive code solution, a subscription is required.
asked November 2025StringGreedySimulationJSON Prediction Diff
2/5Compare two structured text payloads to identify specific keys that contain differing values between the datasets, a practical utility task featured in technical evaluations at IBM. This exercise assesses your string manipulation abilities, JSON parsing proficiency, and dictionary comparison logic under straightforward constraints. It focuses on isolating discrepancies accurately while ignoring absent attributes. View the complete problem breakdown and efficient model implementation by obtaining a subscription.
asked November 2025JSONHashmapString ProcessingProcess Execution Time (Merge Inclusive Intervals)
3/5This IBM interview question presents a scenario where you are given a collection of start and end times for various processes. Your goal is to compute the total cumulative duration during which at least one process was actively running. This involves identifying overlapping time intervals and merging them to avoid double-counting, while also correctly accounting for inclusive endpoints. The problem assesses your proficiency in interval management and efficient aggregation of time ranges, often requiring techniques like sorting or sweep-line algorithms. The full problem and model solution require a subscription.
asked November 2025IntervalsMergeSortingFrontend CSS Flexbox Layout Task
2/5Appearing in technical assessments for IBM roles, this hybrid task combines traditional algorithmic problem-solving with modern CSS layout design using flexbox positioning. Candidates are provided with existing HTML markup and must write precise stylesheets to achieve a specified visual arrangement while also solving a secondary programming puzzle. It tests well-rounded frontend and backend competency even in specialized engineering applications. Gain full access to the complete layout requirements, evaluation criteria, and model solution with a subscription.
asked October 2025FrontendMinimum Link Reallocation to Connect Repositories
3/5Featured in an IBM technical interview, this graph theory problem requires calculating the fewest link reassignments needed to connect a network of isolated or fragmented repositories into a single component. You are given an undirected graph and must strategically relocate edges to achieve full connectivity while minimizing changes. The exercise tests your grasp of graph connectivity, component analysis, and spanning tree concepts. View the complete problem statement and a robust algorithmic solution with a subscription.
asked September 2025GraphUnion FindDFSSliding-Window Rate Limiter / Abuse IP Detection
3/5This IBM interview puzzle focuses on designing efficient sliding-window algorithms to monitor frequency and catch suspicious traffic patterns. Candidates must track user or client actions across temporal boundaries to identify entities exceeding predefined threshold limits within any given duration. The task highlights performance optimization and real-time data streaming concepts. To examine the full problem requirements and access the comprehensive model implementation, a paid subscription is necessary.
asked September 2025Sliding WindowQueueHashmapEarliest Coordinate Reach with Optional Moves
3/5An IBM coding question about the earliest time a target point becomes reachable when each scheduled move on a grid may be taken or skipped. It tests reasoning about independent axes, prefix counting and turning a search problem into a linear scan.
asked September 2025GreedyGridStringMinimum Removal Rounds by Smallest Response Time
3/5Featured in IBM interviews, this problem challenges you to simulate a deletion process where the smallest remaining response time is repeatedly removed alongside its immediate neighbors until the collection is empty. This tests your implementation skills with priority queues and dynamic neighbor tracking. Unlock the complete problem statement, optimal algorithmic approach, and model solution with a subscription.
asked July 2025HeapLinked ListSimulationMax Distinct Counts After Splitting Array
2/5Tackle this array partitioning challenge reported in recent IBM software engineering interviews. The assessment focuses on optimizing distinct element frequencies across dynamic sub-segments, requiring candidates to design clever single-pass tracking mechanisms rather than relying on redundant recalculations. Mastering this concept sharpens your data structure utilization and linear-time optimization skills. The full problem breakdown and expert-crafted reference solution are available exclusively to subscribers.
asked July 2025HashmapSetArrayArithmetic subarrays of length at least 2
3/5Carve an array into as many non-overlapping runs as possible where each run has at least two elements and steps down by exactly one each time. Asked at IBM, the fixed step is what makes this tractable: maximal descending runs can be found in a single scan, and then each contributes a known number of disjoint pieces. You will find the runs, convert each length into a count, and avoid double counting at the boundaries between runs. Subscribers get the full problem and the model solution.
ArraySliding WindowTwo Pointers
IBM coding interview FAQ
- What coding questions does IBM ask?
- 15 reported coding questions, most often on Hashmap, Array, Greedy, Simulation, String.
- How hard is the IBM coding interview?
- The reported coding questions average 2.7 out of 5: 5 at 2/5, 10 at 3/5.
- Are these IBM coding questions recent?
- The most recent report is from April 2026, and 8 were reported within the last twelve months. Dates come from the interview reports themselves.