DonTheDeveloper Podcast cover image

Backend Mock Technical Interview in 2022 | Python and Algorithms

DonTheDeveloper Podcast

00:00

Getting the Index in the Players Index in a List.

We're ensuring the uniqueness of point number one by iterating through the list. So, for example, if in the first iteration, zero was chosen, then that means Fred is already taken. He's already giving a gift to someone. We should somehow now have logic that will skip over Fred for the next iteration. And again, I'm pseudo coding here. I don't believe this is valid Python. Clearly, I'm going to do a program in these days. But if we just looked like this, we were able to get both the name itself and also the index in the list. Right?

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app