List elements (negative indexes) #ri1:

I was stuck for a very long time and wanted to pick your brains.(even though I passed all the test cases)

I just handled every single one of them, but I saw a lot more concise method. Can you walk me through how you approached this problem? I did some pseudo code to handle every big cases and within them I tried handling the smaller one.

please and thank you

Here are my logs:

include relevant code here (please make sure to keep the backticks around this!)

Hey @StephtheITSloth, I haven’t tackled this stage yet, but just FYI here’s my thought:

“This looks almost exactly like how Python handles negative indexing!”

I’m guessing the concise code you saw probably leveraged this same idea too?

1 Like