Xai Machine Learning Engineer Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.
4Questions
1Company
4 Questions 1 Company
Showing 4 results
xAI
Medium
Machine Learning EngineerIdentify all bad nodes with group tests
You have N nodes. Each node is either good or bad (unknown to you). You can call a function test(S) on a subset of nodes S: - test(S) = True iff all n...
Coding & Algorithms
0
0
Sep 22, 2025
xAI
Medium
Machine Learning EngineerImplement dynamic batching for token decoding
You are given a black-box “simulated language model” interface that can advance many sequences in a batch. Model interface - Tokens are integers. - mo...
Coding & Algorithms
0
0
Sep 22, 2025
xAI
Medium
Machine Learning EngineerDesign O(1) random-sampling set
Design a data structure that supports insert(x), remove(x), and get_random() that returns a uniformly random element among the present items, all in e...
Coding & Algorithms
0
0
Sep 6, 2025
xAI
Medium
Machine Learning EngineerValidate normalized palindromes with variants
Implement a function isNormalizedPalindrome(s) that returns true if s reads the same forward and backward after removing non‑alphanumeric characters a...
Coding & Algorithms
0
0
Jul 17, 2025