-
Notifications
You must be signed in to change notification settings - Fork 312
Implementation of Deque using array #174
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
Implementation of Deque using array #174
Conversation
Added code for Implementation of Deque using array
Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Co-Authored-By: Gagandeep Singh <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #174 +/- ##
=============================================
+ Coverage 96.735% 97.729% +0.993%
=============================================
Files 23 24 +1
Lines 1746 2246 +500
=============================================
+ Hits 1689 2195 +506
+ Misses 57 51 -6
|
Nice work. I have made some suggestions to describe my point. |
Are you participating through GSSoC, 2020? Or would you like to count this contribution as RGSoC, 2020? |
Thank You!
I have been part of GSSoC and will continue to contribute there.
But primary focus at this point is RGSoC as the application submission process is getting closed this month end.
Thank You for your support.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Gagandeep Singh<mailto:[email protected]>
Sent: 19 March 2020 19:06
To: codezonediitj/pydatastructs<mailto:[email protected]>
Cc: Jahnavi-Jonnalagadda<mailto:[email protected]>; Author<mailto:[email protected]>
Subject: Re: [codezonediitj/pydatastructs] Implementation of Deque using array (#174)
Are you participating through GSSoC, 2020? Or would you like to count this contribution as RGSoC, 2020?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMVGKNJZ2HA5ZVX2D3ZNWSDRIINVNANCNFSM4LPIJS5Q>.
|
Please add some tests to increase the diff coverage. |
Yes, I will take this PR as reference and will reach out to you for any queries while filling the application form.
Btw, what is diff coverage? Sorry for the basic question.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Gagandeep Singh<mailto:[email protected]>
Sent: 19 March 2020 19:17
To: codezonediitj/pydatastructs<mailto:[email protected]>
Cc: Jahnavi-Jonnalagadda<mailto:[email protected]>; Author<mailto:[email protected]>
Subject: Re: [codezonediitj/pydatastructs] Implementation of Deque using array (#174)
Please add some tests to increase the diff coverage.
P.S. If you are applying for RGSoC, 2020 in our project then please mention this PR in your application.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMVGKNMWV7EEAUVQZUY6LGDRIIO6NANCNFSM4LPIJS5Q>.
|
@Jahnavi-Jonnalagadda Are you working on it? There are some things which are to be addressed before this gets merged. |
The lines marked in red here aren't executed even once by the tests i.e., those lines aren't tested so how can someone rely on them? |
Hey, Sorry for this but could you please let me know what diff coverage is?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Gagandeep Singh<mailto:[email protected]>
Sent: 26 March 2020 00:57
To: codezonediitj/pydatastructs<mailto:[email protected]>
Cc: Jahnavi-Jonnalagadda<mailto:[email protected]>; Mention<mailto:[email protected]>
Subject: Re: [codezonediitj/pydatastructs] Implementation of Deque using array (#174)
@Jahnavi-Jonnalagadda<https://github.com/Jahnavi-Jonnalagadda> Are you working on it? There are some things which are to be addressed before this gets merged.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMVGKNL22KX3NQDFDSBCWG3RJJLJXANCNFSM4LPIJS5Q>.
|
Have you gone through #174 (comment) ? |
Am I supposed to change the code of those lines in red?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Gagandeep Singh<mailto:[email protected]>
Sent: 26 March 2020 14:32
To: codezonediitj/pydatastructs<mailto:[email protected]>
Cc: Jahnavi-Jonnalagadda<mailto:[email protected]>; Mention<mailto:[email protected]>
Subject: Re: [codezonediitj/pydatastructs] Implementation of Deque using array (#174)
Have you gone through #174 (comment)<#174 (comment)> ?
If you still are not able to get it then please let me know.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMVGKNP7BOWGV4EVMXEDEJTRJMKY7ANCNFSM4LPIJS5Q>.
|
Co-Authored-By: Gagandeep Singh <[email protected]>
Tests are to be added for the lines in red in the following function,
In addition, |
There are no lines in red in the link mentioned below?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Gagandeep Singh<mailto:[email protected]>
Sent: 27 March 2020 16:59
To: codezonediitj/pydatastructs<mailto:[email protected]>
Cc: Jahnavi-Jonnalagadda<mailto:[email protected]>; Mention<mailto:[email protected]>
Subject: Re: [codezonediitj/pydatastructs] Implementation of Deque using array (#174)
Am I supposed to change the code of those lines in red?
Tests are to be added for the lines in red in the following function, https://github.com/codezonediitj/pydatastructs/blob/6cc969c0c55ce348097025d917060d585f8054dd/pydatastructs/miscellaneous_data_structures/tests/test_queue.py#L17
In addition, LinkedListQueue should also have the definitions of appendleft and popright methods.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMVGKNPHDTCXMSIVS34JYF3RJSE3BANCNFSM4LPIJS5Q>.
|
There red lines at https://codecov.io/gh/codezonediitj/pydatastructs/pull/174/diff |
|
Sorry for this, I've closed the PR by mistake. I actually thought of commenting. |
Any updates? After two days, |
I was referring to the tutorials you suggested. Will make the changes by tomorrow.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Gagandeep Singh<mailto:[email protected]>
Sent: 31 March 2020 14:21
To: codezonediitj/pydatastructs<mailto:[email protected]>
Cc: Jahnavi-Jonnalagadda<mailto:[email protected]>; State change<mailto:[email protected]>
Subject: Re: [codezonediitj/pydatastructs] Implementation of Deque using array (#174)
Any updates? After two days, Please take over label will be attached so that someone else can continue it.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMVGKNJCOSEWWEDUIDDI353RKGVIFANCNFSM4LPIJS5Q>.
|
Do you want |
As can be seen in the patch, an extra keyword argument is required to be added to enable |
so just the tests need to be updated? |
Yes. |
implementation is a bit off, need some time to correct it. |
if we use circular array implementation of |
Well, then ignore the arrays in case of doubly ended queue, just raise an error if array implementation is asked for when doubly_ended=True. |
let me try working on circular dynamic queue. If it works then we might just have better implementation than python itself. |
Closing in favour of #247 |
Added code for Implementation of Deque using array
References to other Issues or PRs or Relevant literature
Fixes #120
Brief description of what is fixed or changed
Implemented Deque using arrays by adding popright() and appendleft() functions to the existing code.
Other comments
Code raises exception if the queue is not doubly ended