GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MissionJava/data-structure-and-algorithm-using-java

BranchesTags
Open more actions menu

Latest commit

 

History

72 Commits
72 Commits

Folders and files

NameName
Last commit message
Last commit date
src/main/java/com/antesh
src/main/java/com/antesh
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

data-structure-and-algorithm-using-java

This repository includes data structure and algorithm solutions, and solutions of the live coding interview questions asked at different companies over a video call.

Data Structure

1. Stack

- linear data structure which follows LIFO or FILO
- push(), pop(), peek(), isEmpty() all take O(1) and no looping required

Application of Stack

 - String reversal
 - Tower of Hanoi
 - Infix to Postfix/Prefix conversion
 - Tree traversal
 - [Stock span problem](https://www.geeksforgeeks.org/the-stock-span-problem)
   - The stock span problem is a financial problem where we have a series of n daily price quotes for a stock, 
     and we need to calculate span of stock’s price for all n days.
 - Backtracking problems: Knight-Tour problem, N-Queen problem, find your way through a maze, and game-like 
   chess or checkers in all these problems we dive into someway if that way is not efficient we come back to
   the previous state and go into some another path. To get back from a current state we need to store the 
   previous state for that purpose we need a stack.

Implementation of Stack

- [Using Arrays](https://github.com/MissionJava/data-structure-and-algorithm-using-java/blob/main/src/main/java/com/antesh/dsa/stack/StackUsingArray.java)
- [Using Linked list](https://github.com/MissionJava/data-structure-and-algorithm-using-java/blob/main/src/main/java/com/antesh/dsa/stack/StackUsingLinkedList.java)
  - Pros: The linked list implementation of a stack can grow and shrink according to the needs at runtime. 
  - Cons: Requires extra memory due to involvement of pointers.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.