Good point Pierre!
My focus is more to explain the logic rather than going into the syntax of the language.
And yes, you are right about the isFull() and isEmpty() has no parameters but again I focused more on explaining rather than validating my code.
If code is not you main concern because you want to focus on algorithms, then you may use pseudo-code instead ;) Using a incomplete or incorrect may confuse your readers and distract them from your real purpose.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good point Pierre!
My focus is more to explain the logic rather than going into the syntax of the language.
And yes, you are right about the isFull() and isEmpty() has no parameters but again I focused more on explaining rather than validating my code.
Thank you for your suggestions buddy!
If code is not you main concern because you want to focus on algorithms, then you may use pseudo-code instead ;) Using a incomplete or incorrect may confuse your readers and distract them from your real purpose.