โ† Samsung questions

Last digit of a^b for large numbers

Filed under Samsung

The question

Given two large numbers a and b, find and output the last digit of a^b.

No write-up yet. Related questions below have one.

Related Samsung questions

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