Twelfth Post!
May. 31st, 2025 06:24 pmPOST NAMER TBC-- work harder, meme!
Welcome back, anyway! Chat fandom, media, creative things, weirdness from around the net, funny stuff, anything! Meme awaits!
(start a comment thread by replying to this post)
Welcome back, anyway! Chat fandom, media, creative things, weirdness from around the net, funny stuff, anything! Meme awaits!
(start a comment thread by replying to this post)
Re: Coding
Date: 2025-08-14 08:08 pm (UTC)Re: Coding
Date: 2025-08-14 08:26 pm (UTC)(I'd go "well, there'll be a library for permutations; that'll have a better algorithm than the nested for-loops I'll end up with" and I'd search "$language permutations function". :p)
Re: Coding
Date: 2025-08-14 09:15 pm (UTC)I actually wrote this problem intending for a recursive solution (i.e. there's a fairly natural exit condition that allows you to short-circuit most attempts). Listing all the permutations is the brute-force solution, which is fine, but I've been surprised by how many people choose this solution and then get stuck on that part. Might need to redraft parts of this question as a result.
I'm also the designated coding and algorithms interviewer, so it's Leetcode or bust here. Usually I feel like my questions aren't all that tricksy, but I do love recursion and so many people struggle with it.
Re: Coding
Date: 2025-08-14 09:39 pm (UTC)Re: Coding
Date: 2025-08-14 10:00 pm (UTC)