Skip to content
sneppets

sneppets

  • Privacy
queue java

Queue introduction and implementation in Java

November 14, 2018December 8, 2018 Editorial StaffLeave a Comment on Queue introduction and implementation in Java

Queue is more abstract entity like stack than array and many other data structures. The underlying mechanism used to implement queues is not visible to the user. In queue first item inserted would be the first one to be removed… Read More!

DS, Java Datastructures, queue, queue java
stack example

Stack Example 2: Delimiter Matching

November 13, 2018December 8, 2018 Editorial StaffLeave a Comment on Stack Example 2: Delimiter Matching

In previous article Stack introduction and implementation we had learnt how to implement stack in java and in our first example Stack Example 1 we have seen how to use stack to reverse a word or a string. Stacks are commonly used… Read More!

DS, Java delimiter matching, stack, stack example
Stack Example

Stack Example 1: Reverse a string or word

November 13, 2018December 8, 2018 Editorial StaffLeave a Comment on Stack Example 1: Reverse a string or word

In our previous article Stack Introduction and Implementation we had learnt how to implement stack in java. In this first example we will see how to reverse a word or a string using a stack. When you run the following code, it… Read More!

DS, Java reverse string, stack, stack example
Stack Java

Stack Introduction and Implementation in Java

November 13, 2018December 8, 2018 Editorial StaffLeave a Comment on Stack Introduction and Implementation in Java

Stack is more abstract entity than array and many other data structures. The underlying mechanism used to implement stacks is not visible to the user. It follows Last In First Out (LIFO) principle i.e., stacks allows access to only one… Read More!

DS, Java stack, stack class

Ordered Array Data Structure Example

May 28, 2018December 8, 2018 Editorial StaffLeave a Comment on Ordered Array Data Structure Example

The following is the example code for an ordered array data structure. OrderedArrayDataStructure class encapsulate the array and its algorithms. We could have used binary search to find the position where we can insert element into the array. But for… Read More!

DS Algorithms, core java, Datastructure

Posts navigation

Older posts
Newer posts
Copyright © 2018 Sneppets. All Rights Reserved