Data-Structures-and-Algorithms icon indicating copy to clipboard operation
Data-Structures-and-Algorithms copied to clipboard

Stack Implementation

Open Iltwats opened this issue 5 years ago • 9 comments

Stack operations may involve initializing the stack, using it and then de-initializing it. Apart from these basic stuffs, a stack is used for the following two primary operations −

push() − Pushing (storing) an element on the stack.

pop() − Removing (accessing) an element from the stack.

When data is PUSHed onto stack.

To use a stack efficiently, we need to check the status of stack as well. For the same purpose, the following functionality is added to stacks −

peek() − get the top data element of the stack, without removing it.

isFull() − check if stack is full.

isEmpty() − check if stack is empty.

Implement programs for following functions.

Iltwats avatar Oct 01 '20 06:10 Iltwats

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.86. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Oct 01 '20 06:10 issue-label-bot[bot]

@Iltwats can i work on this issue.

Monik09 avatar Oct 01 '20 07:10 Monik09

Yes you can.

On Thu, 1 Oct, 2020, 12:33 pm Monikinderjit Singh, [email protected] wrote:

@Iltwats https://github.com/Iltwats can i work on this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Iltwats/hacktoberfest/issues/26#issuecomment-701933503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5BX6HTR2NOQ36XPECXZDLSIQSVXANCNFSM4R77IYVQ .

--       

www.jecrcuniversity.edu.in http://www.jecrcuniversity.edu.in

ENGINEERING | SCIENCES | MANAGEMENT | HUMANITIES | LAW | AGRICULTURE | HOTEL MANAGEMENT | JOURNALISM MASS COMMUNICATION | DESIGN | * *Important: The information in this email is confidential and may be legally privileged, It is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution is prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Thank you, JECRC University - Disclaimer *"SAVE PAPER.  Good for your planet. Good for your Business" *

Iltwats avatar Oct 01 '20 09:10 Iltwats

Can I work on this implementation in Java?

pharms2011 avatar Oct 05 '20 20:10 pharms2011

Yes

On Tue, 6 Oct, 2020, 2:21 am Preston Harms, [email protected] wrote:

Can I work on this implementation in Java?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Iltwats/hacktoberfest/issues/26#issuecomment-703881409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5BX6HOFPSB7BOXR3OW54LSJIWTTANCNFSM4R77IYVQ .

--       

www.jecrcuniversity.edu.in http://www.jecrcuniversity.edu.in

ENGINEERING | SCIENCES | MANAGEMENT | HUMANITIES | LAW | AGRICULTURE | HOTEL MANAGEMENT | JOURNALISM MASS COMMUNICATION | DESIGN | * *Important: The information in this email is confidential and may be legally privileged, It is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution is prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Thank you, JECRC University - Disclaimer *"SAVE PAPER.  Good for your planet. Good for your Business" *

Iltwats avatar Oct 06 '20 05:10 Iltwats

Can i please implement this using python or C....or even both ?

RiyaMathew-11 avatar Oct 14 '20 09:10 RiyaMathew-11

Yes

Iltwats avatar Oct 14 '20 09:10 Iltwats

Ive created a pull request Stack Implementation using C...do please check it out

RiyaMathew-11 avatar Oct 14 '20 14:10 RiyaMathew-11

Stack Implementation Using C #165

RiyaMathew-11 avatar Oct 14 '20 15:10 RiyaMathew-11