Other Coding & Algorithms Interview Questions
Master your tech interview with our curated database of real questions from top companies.
4Questions
1Company
4 Questions 1 Company
Showing 4 results
Other
Medium
Data ScientistImplement multiplication without using the multiplication operator
Implement int multiply(int a, int b) without using * or /. You may use +, −, bitwise operators, and shifts. Requirements: - Handle negatives, zero, an...
Coding & Algorithms
0
0
Oct 13, 2025
Other
Medium
Data ScientistProve reservoir sampling correctness
Design an algorithm to sample k items uniformly at random from a stream of unknown and potentially massive length N, using O(k) memory and one pass. (...
Coding & Algorithms
0
0
Oct 13, 2025
Other
Medium
Data ScientistWrite mini-batch gradient descent
Implement a generic mini-batch gradient descent routine: inputs are differentiable loss L(θ; x), initial θ0, batch size b, steps T, and learning-rate ...
Coding & Algorithms
0
0
Oct 13, 2025
Other
Medium
Data ScientistImplement KNN from scratch
Without using ML libraries, implement k-Nearest Neighbors for classification. Requirements: (a) Support Euclidean and cosine distances; (b) Allow tie-...
Coding & Algorithms
0
0
Oct 13, 2025