Hudson Data Scientist Interview Questions
Practice the exact questions companies are asking right now.
2Questions
1Company
2 Questions 1 Company
Showing 2 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