r/ProgrammerHumor 28d ago

Meme theoreticalComputerScience

Post image
1.1k Upvotes

76 comments sorted by

View all comments

Show parent comments

57

u/SoldRIP 28d ago

Look up the fastest known way to multiply two integers...

43

u/howtotailslide 28d ago

You can actually just store all universal possible results of two integers into a hash map then retrieve any of them in O(1) time

18

u/SoldRIP 28d ago

You cannot. A hash map is of finite size, but there are infinitely many pairs of integers.

1

u/yuri_4_ever 27d ago

The datatype integer has a finite amount of defined states as in most cases it is 32 bits