this is the only linear time complexity solution i've seen here. Definitely deserves more appreciation
i don't understand the fifth line of code. What is the reason for doing those arithmetic operations? How do they affect the index of the string after completion?
Applause for the king!!
when problem is easy make code hard
That is actually a game called Code Golfing
Simple katas like this one can be used to:
you really just wanted to flex the shortest code huh?
lmao
def multiply(a,b): result = a*b return result res = multiply (5,10) print(res)
xd
help
Loading collection data...
this is the only linear time complexity solution i've seen here. Definitely deserves more appreciation
i don't understand the fifth line of code.
What is the reason for doing those arithmetic operations?
How do they affect the index of the string after completion?
Applause for the king!!
when problem is easy make code hard
That is actually a game called Code Golfing
Simple katas like this one can be used to:
you really just wanted to flex the shortest code huh?
lmao
def multiply(a,b):
result = a*b
return result
res = multiply (5,10)
print(res)
xd
help