Toggle site
Catalog
You've read
0
%
Song Hayoung
Follow Me
Articles
11101
Tags
196
Categories
62
VISITED
Seoul Korea
Jeju Korea
British Columbia Canada
Boracay Philippines
三重 日本
大阪 日本
名古屋 日本
静岡 日本
札幌 日本
京都 日本
Bangkok Thailand
SUMFIのBlog
Home
Archives
Tags
Categories
About
Search
[Codewars] Last digit of a large number
2023-06-02
|
PS
Codewars
Word count:
23
|
Reading time: 1 min
Last digit of a large number
Time :
Space :
1
2
def
last_digit
(
n1, n2
):
return
pow
(n1,n2,
10
) %
10
Author:
Song Hayoung
Link:
https://songhayoung.github.io/2023/06/02/PS/Codewars/last-digit-of-a-large-number/
Copyright Notice:
All articles in this blog are licensed under
CC BY-NC-SA 4.0
unless stating additionally.
Problem Solving
Math
[Codewars] Numbers that are a power of their sum of digits
[Codewars] Emirps
Algolia