cs-2.1-trees-sorting's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.