📣 "Worry pretends to be necessary, but serves no useful purpose." - Eckhart Tolle
s= 'legos_rock'
def recursive(s, b, v):
if len(s) > 0:
recursive(s[1:], b + s[0], v)
recursive(s[1:], b, v)
v.append(b + s[0])
return v
print(recursive(s, '', ['']))
Here's this week's question!
Given dimensions of a rectangle n and m, return the number of identical squares that can fit inside the rectangle.
For example:
squaresInRect(6,9)
> 6 // each of size 3x3
Â
Cool things from around the internet
#VoiceFirst with Cassidy Williams (shameless plug)
Synth Sounds of "Africa" by Toto
95-Key Keyboard Prototype
3-D Printing Is The Future Of Factories (For Real This Time)​
Â
Joke
I have an imaginary friend, but she keeps making fun of me. She keeps saying, "at least I have a real friend!"
Â
That's all for this week, friends! Hope you have a great week. Be safe, make good choices, and always check your blind spot.
Also, thank you for your replies. They're wonderful, and I read every single one of them. And thanks again for being a part of this!
cassidoo
Don't miss what's next. Subscribe to rendezvous with cassidoo:
Share this email: