Just completed the IBM Online Assessment for the Application Developer – Experience Front End role.
Sharing the coding questions for anyone preparing.
Platform: HackerRank
Questions: 2 Coding
Difficulty: Easy–Medium
Focus Areas: Sliding Window, Hashing, Subarrays / Substrings
Problem (High-level):
Given an integer array nums and an integer k, return the total number of contiguous subarrays whose product of elements equals k.
nums = [2, 3, 2, 2]
k = 4
Output: 1
Explanation:
Only subarray [2, 2] has product = 4O(n²) works for small input but may TLEProblem (High-level):
Given a string text, count the number of substrings that contain only distinct characters.
Two substrings are different if they start or end at different positions.
text = "abac"
Output: 8
Valid substrings:
"a", "b", "a", "c", "ab", "ba", "ac", "bac"1 ≤ |text| ≤ 10^5Questions were straightforward but required clean logic
Emphasis was on:
Very doable with solid DSA fundamentals
Practice:
Focus on clean code + correctness
Don’t overthink — problems are mostly pattern-based
IBM OA felt fair and practical, especially for a Front End–aligned role with strong algorithmic basics.
If anyone else appeared recently and got different questions, feel free to comment and share 👇
All the best to everyone preparing! 🚀