Connected Components in an Undirected Graph
Determine the number of connected components in an undirected graph.
Input: n = 4, edges = [[0,1],[2,3]]
Output: 2
Explanation: The graph is split completely evenly into two distinct isolated components: nodes {0,1} and nodes {2,3}.
IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected
# IBM | Cloud & AI Engineer | 6.5 YOE | Bengaluru | 2 Technical Rounds | Rejected | Oct 2026
Hi everyone,
I recently interviewed with **IBM for a Cloud & AI Engineer role in Bengaluru**. I completed two technical rounds but unfortunately wasn't selected to proceed further.
Sharing my experience in case it helps others preparing for sim…
**This is the second coding assessment after shortlisted from OA**
1.)Given an integer array named yCoordinates where yCoordinates[i] represents the Y axis and each index represents the X axis. Find the strictly increasing contiguous slope of the give points of size exactly K.
Example:
Input:
[6,5,7,8,3,5,6] and k=3
The points are (0,…
I encountered this SQL question in an IBM Coding Assessment and wanted to share it here for others preparing for IBM coding assessments, SQL interviews, and technical rounds.
The question required writing a PostgreSQL query to identify customers whose websites have high average resource usage.
# Problem Statement
Create a report showin…
IBM Online Assessment -On Campus-2 Coding Problems
I recently completed an **IBM Online Assessment** and wanted to share the coding questions I encountered.
Platform:HackerRank
Time:70 minutes
## Question 1 – 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 arra…
IBM Coding Assessment Question | Similar Strings Based on Character Frequency Difference ≤ 3
I encountered this problem in an IBM Coding Assessment and found the frequency-counting observation quite straightforward but interesting. Sharing it here for others preparing for IBM coding assessments and DSA interviews.
Problem Statement
You are given two arrays of strings, s and t, each of length n.
Each pair s[i] and t[i] contains…
Implement a Trie
Implement a Trie for prefix matching.
Input: insert("hello"), startsWith("hel")
Output: TRUE
Explanation: Traverses the Trie nodes to confirm that the prefix "hel" actively exists within the inserted word "hello".
Metrics And ExperimentationProduct InterpretationStatistics
41
You A/B test a new home feed ranking model and see a 3% lift in 7-day retention, but the sample ratio is 52% treatment and 48% control even though you ramped 50/50. What do you do next, and how do you decide whether to trust the retention lift?
Data Scientist#Machine Learning#Probability & Statistics#Product Strategy