GithubHelp home page GithubHelp logo

cs-2.1-trees-sorting's People

Contributors

econclass avatar neptunius avatar

Watchers

 avatar  avatar

cs-2.1-trees-sorting's Issues

Feedback on heaps, priority queues, and integer sorting algorithms

Great work on completing these challenges. Here's some feedback to improve your code:

  • Your delete_min and get_min() functions are not returning the min element. Use print statements to see why and when this is happening! It is likely due to the incomplete bubble_up/down functions.
  • You are missing your priority queue and counting_sort implementations as well! :(

Feedback on prefix trees

Great job on completing the prefix tree! You can further challenge yourself by working on time and space complexities for each prefix tree method. You would be expected to do this in interviews, and it would be good practice :)

Feedback on sorting algorithms

What was great:

  • Good job on implementing your is_sorting function efficiently!
  • Good job on successfully implementing your sorting algorithms!

Here's some feedback to improve:

  • Try adding a couple more test cases! It may seem intimidating at first, but you've made it past the hard part. Implementation is way tougher than calling these functions and comparing inputs. In the work environment, writing tests will be required. Its a good habit to build :)
  • Partition should be O(n) and quick_sort is O( n * logn ) because partition loops over the list of length n and quick sort calls it on around half the list based on your chosen partition. In the worst case, it could be O(n**2) if the partition choice is not great!

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.