studydash / cards

Houses all cards created for StudyDash Group 00! 😀
http://studydash.github.io
2 stars 2 forks source link

Achieved Python Level 4 on HackerRank (06/23) #135

Open anitabe404 opened 3 years ago

anitabe404 commented 3 years ago

Motivation/Problem Statement 💭❓:

Learn Python


Today's Goal/Solution 🥅:

Do some Python challenges on HackerRank


Result 🍓🍌🍉:

I leveled up in the Python track on HackerRank (now level 4).


Observations & Next Steps 🔭👣:

I know I keep saying this, but I like doing coding challenges because I always learn something new. Today, I learned that there is some time efficiency with using sets vs lists in Python. So much so that I couldn't pass some of the test cases without switching to using sets. I'm still very unsure of how it all works, so I have some more research to do to understand. I just didn't expect using a set vs a list to be the difference in the compiler timing out.


References 🔗:

Link any useful resources you may have found throughout the day.


Extra/Fun (Optional) 🎈🎉🥳:

I am still reading A Splendid Ruin. It's getting really good.

r002 commented 3 years ago

Sets in Python are awesome! Python's robust collections are probably one of my favorite features of the language. It's been a while but I remember really enjoying playing around with sets (unique membership), deques (double-headed queues, for tasks like keeping a rolling window of logs), and named tuples. It's so cool to see you learning all of these sweet Python features! 😀

Btw, non sequitur-- but did you ever receive an invitation to the StudyDash organization from GitHub? I invited you a week ago but it says your membership is still pending:

image

If you visit, https://github.com/studydash, you should see a prompt inviting you!

anitabe404 commented 3 years ago

@r002 My bad, I thought I had accepted it. Apparently, I did not. 😂 I've accepted it now.

Yea, I feel like there's just so much to read and know. I think I need to get a better handle on Big O and a couple of other things before I can really appreciate the efficiencies of sets.