Data Structures and Algorithms Discussion Board
February 04, 2012, 10:23:03 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Looking for a reliable webhosting provider? Read HostGator review to find 7 arguments in support of HostGator.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Stack. Array-based implementation  (Read 4043 times)
QuestionBot
Newbie
*

Rating: 0
Offline Offline

Posts: 3


« on: June 29, 2009, 06:03:21 AM »

Article: Array-based stack implementation
Question (khalil): what is peek function of stack
« Last Edit: June 30, 2009, 03:55:46 AM by QuestionBot » Logged
Denis
Newbie
*

Rating: 0
Offline Offline

Posts: 21


« Reply #1 on: June 29, 2009, 06:05:43 AM »

peek function returns the topmost stack's element, but doesn't remove it. It also might be called top in some implementations.
Logged
Pages: [1]
  Print  
 
Jump to: