Coder Social home page Coder Social logo

core-data-structures's Issues

Feedback on the second submission

Good job on completing the second coding challenge. Here's some feedback:

  • Your set stores tuples: key, value pairs. This is usually not the way sets work. Sets usually store washable values β€”> single elements. Key, value pairs are conventionally for dictionaries.
  • Union and length method is failing your tests currently.

Feedback on the third submission

  • First of, I would like to say, amazing job on your medium article. I loved reading it!! What an interesting way to connect binary trees to something affecting a lot of us HUGELY right now. It was very engaging! :)
  • Challenge yourself by implementing a tree map or the delete method for a binary search tree!

Code Review (SPD 1.02)

Topics discussed: readability, organization, effectiveness, testing, complexity

Readability and Formatting

  • Variable names are semantic and easy to follow when reading the code -- I really like the use of bucket_quantity instead of new_size in your resize() method!
  • Lines are short, casing and formatting is consistent
  • The comments made me actually laugh out loud several times (a good example would be your set() method)
#the _ is the equivalent of 'private' - says this is an internal method only to be called within the class, so don't call it outside.
#not to be confused with __, i.e. mangle, which makes it even more private lol
#alan says 'seriously guys don't touch this' (this='mangle')
  • Comments explain what's happening in the code, and other comments that explain alternate concepts (Python things, thought process of how you figured something out, etc). Really useful for future use and studying! πŸ‘πŸ‘πŸ‘

Organization and Modularity

  • Code is loosely coupled and broken into functions appropriately
  • Love that you keep code that maybe wasn't as good when you learn new ways to do things, and leave notes for yourself explaining that growth! (lines 174-186)

Effectiveness of Solution

  • Code creates a hashtable and can solve using different input.

Testing and Error Handling

  • Lots of tests! With good commenting so you can see where edge cases are tested etc.

Algorithmic Complexity

  • Might be worth it to annotate time complexity in the TODOs (i'm a hypocrite haha), because it looks like the code is in its best case!

Standard Library/Conventions

  • Side note: making a new convention for myself based off your code and it's called "wow emojis in code comments??? why don't I do that?" 🀷

Feedback on first submission

Good job on completing your first submission. Here's what you can do to improve:

  • Palindrome Recursive function: FIX TYPO! You are passing in parameter β€œtext” and trying to use undefined parameter β€œsplit-text.”
  • I see that you attempted to refactor your code. However, there is still duplicate code in your file. The find_index and find_all_indexes seems to have a lot of duplicate code! Try to see if you can use helper functions or use one of the functions in the other one, such that there is no duplicate code in your file!
  • Its best to always run and test your code before submitting. For your linkedlist_test file, you have a unittest function with no content in it. Either tell it to pass or remove it because it cannot compile otherwise.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.