Hudson Interview Questions
Practice the exact questions companies are asking right now.
3Questions
1Company
3 Questions 1 Company
Showing 3 results
Hudson
Medium
Data ScientistCount inversions in a permutation
Problem Given an array a of length n that is a permutation of distinct integers (e.g., 1..n), define an inversion as a pair of indices (i, j) such tha...
Coding & Algorithms
0
0
Nov 28, 2025
Hudson
Medium
Data Scientist LockedDerive expected inversions and mean distribution
Random permutation inversion statistics Let π be a uniformly random permutation of length N. Let X be the number of inversions in π. 1. Compute the ex...
Machine Learning
0
0
Nov 28, 2025
Hudson
Easy
Software Engineer LockedCount players reaching end with moving watchers
You are given a 1D line of L cells indexed 0..L-1. The end cell is L-1. There are: - W watchers with initial integer positions watchers[]. - P players...
Coding & Algorithms
0
0
Nov 2, 2025