View RSS Feed

Algorithm and Data Structure

Algorithm and data structure examples in Java.

  1. Java Stack Introduction

    by , 02-19-2012 at 07:11 AM
    A stack is basically a data structure which uses the following:

    • Methods for inserting the data by the help of push operation
    • Methods for removal of data by the help of pop operation.


    Peak method is supported by Stack implementations. It will make the head to be read without removal from Stack. Last in First out policy is used in Stack. This means that data which has been inserted in data structure at last will be made to get removed first.

    Data ...
    Tags: stack Add / Edit Tags
    Categories
    Queue , Stack