-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Circular array documentation #1841
Conversation
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible.). If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
⚡️ Lighthouse Report for the Deploy Preview of this PR 🚀
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update only id
in docs/Circular_array/Introduction.md
file
@ajay-dhangar please check once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
🎉🎉 Thank you for your contribution! Your PR #1841 has been merged! 🎉🎉 |
📥 Pull Request
Description
The circular array, or circular buffer, is a linear data structure that wraps around to the beginning once it reaches the end, allowing efficient use of memory by reusing space without reallocating the array. It operates with a fixed size and is commonly utilized in queue implementations and buffering systems. Key operations include initialization, insertion (enqueue), deletion (dequeue), and checking the full or empty status. The provided implementations in Python, Java, and C++ demonstrate how to manage the circular nature of the array while maintaining optimal performance for these operations. The time complexity for enqueueing and dequeueing is (O(1)), while the space complexity is (O(n)), where (n) is the fixed size of the array.
Fixes #1817
Type of change
Checklist: