← Walmart questions
CodingMediumReported in a candidate post, Sep 2019

Combinatorics with Binary Search and Exponentiation

Filed under Walmart

Implement a custom power function to calculate x^y in O(log y) time using binary exponentiation, and handle large outputs using modular arithmetic (modulo 10^9+7).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Walmart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.