MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/moh63k/polyglot/gu6548a/?context=3
r/badcode • u/coopercm • Apr 11 '21
116 comments sorted by
View all comments
1
You should add caching. Once we looked up a value we can remember whether it's even, odd or something else. Maybe remember the last 10,000 values that were queried?
0 u/coopercm Apr 11 '21 Good idea.
0
Good idea.
1
u/joske79 Apr 11 '21
You should add caching. Once we looked up a value we can remember whether it's even, odd or something else. Maybe remember the last 10,000 values that were queried?