Comments (3)
Hi Manohar, this would be a very nice and useful addition to the project, so thanks for suggesting it. I gave it a thought and will build that as an independent data structure in a new repo, it makes more sense. Will keep the issue here opened till the release of the datastructures-js/deque
from queue.
v1 released https://www.npmjs.com/package/@datastructures-js/deque
from queue.
Sure Eyas
New repo makes more sense.
- It won't disturb current implementation, and can grow independently.
- But on the other hand, some duplication will be there, which is totally fine. Just that we need to take-in the fixes of one to the other when there are potential improvements that are common to each other.
1
And while solving a problem elsewhere
I created a base structure for the Deque, and posted impleted to my github link given below.
My Deque implementation is very basic:
- Not optimal in terms of memory hence speed, etc. ( but it passed all tests of a Hard question, to begin with )
- I have not used push_front function, but might work ( there is a comment for the same in the code )
- Since I moved from C++ to JavaScript, out of habit I used C++ snake_case_covention for function names, so might not be perfect for camelCase JavaScript, for example: may be, it should be pushBack() instead of push_back(), etc.
2
Also, I can write a bit of code :), so do let me know if you need help in some tasks. I like very trivial or very difficult tasks :)
And thanks for building Deque
Deque implementation / Github link:
Deque implementation usage / My solution elsewhere:
from queue.
Related Issues (2)
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.
from queue.