jwalsh / jwalsh/hy-algorithms

Implement stack-based algorithms and data structures

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
data-structure difficulty:easy stack
Dominant language
Hy
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Create implementations for stack-based algorithms and data structures:

## Basic implementations:
- Stack implementation using arrays
- Stack implementation using linked lists
- Min stack with O(1) operations
- Stack with queue operations in O(1)

## Classic stack problems:
- Next greater element
- Valid parentheses
- Evaluate postfix expression
- Convert infix to postfix/prefix
- Implement calculator
- Largest rectangle in histogram
- Stock span problem
- Celebrity problem

## Requirements:
- Provide detailed complexity analysis
- Create comprehensive test cases
- Include practical applications
- Document advantages/disadvantages of different implementations

This collection will demonstrate fundamental stack operations and their applications in algorithm design.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or existing tests; first inspect the repository's Hy algorithm and data-structure layout and its current testing conventions. Implement the listed stack structures and problems, with complexity analysis, comprehensive tests, practical applications, and implementation trade-offs documented when all requirements are covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, documentation, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.