jwalsh / jwalsh/hy-algorithms

Add popular LeetCode problems with solutions

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
array difficulty:medium dynamic-programming enhancement string
Dominant language
Hy
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Implement solutions to popular LeetCode problems across various categories:

## Easy Problems (5-10)
- Two Sum
- Valid Parentheses
- Merge Two Sorted Lists
- Maximum Subarray
- Climbing Stairs

## Medium Problems (5-10)
- Add Two Numbers
- Longest Substring Without Repeating Characters
- 3Sum
- Letter Combinations of a Phone Number
- Generate Parentheses

## Hard Problems (3-5)
- Median of Two Sorted Arrays
- Regular Expression Matching
- Merge k Sorted Lists
- Trapping Rain Water
- LRU Cache Implementation

Each solution should:
- Include problem statement and constraints
- Provide a well-commented implementation in Hy
- Include complexity analysis
- Have comprehensive test cases
- Compare different solution approaches where applicable

This collection will demonstrate Hy's capabilities for solving common algorithmic problems and provide reference implementations.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.