javascript-algorithms
javascript-algorithms copied to clipboard
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
Fixed CRLF → LF line ending warnings. Ensured Git does not auto-convert line endings. Added error handling to reverseTraversal.js. Addressed eslint warnings (no-console). ✅ All tests passed. Ready for review!...
Enhance CONTRIBUTING guidelines with structure and visual clarity.
Added : 1. Emojis: Added relevant emojis to sections for visual appeal and to highlight key points. 2. Formatting: Used bolding and bullet points for clarity and to break down...
- **Error Message**: Corrected typo: "Kruskal's algorithms" to "Kruskal's algorithm." - **Comparison Callback**: Simplified by using weight difference directly. - **Variable Declaration**: Replaced `@var` comments with `const` for clarity. -...
Added fix circular linked list
### Improvements Made: 1. **Context Handling**: Fixed the issue with the `forEach` method by using an arrow function to preserve the context of `this`. 2. **Performance Optimization in `poll()`**: Simplified...
applied the reduce method to iteratively compute the LCM across all numbers in the array, combining each pair of results. Additionally, I used the Euclidean algorithm for GCD calculation, which...
I have removed the Math.max calculation and directly added profit only on days when the stock price increased simplifying the logic and improving readability. This greedy approach accumulates profit efficiently...
``` let todo_container = document.getElementById('todo-list'); ``` W pliku index.html https://github.com/Mothman910/ja-i-niunis/blob/86f12d6184562a5cc7597932b56144215d473f76/index.html#L340-L354
https://en.wikipedia.org/wiki/Hungarian_algorithm