Skip to content

dajocarter/l33tcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L33tCode

A practice repository for solving LeetCode-style algorithm problems with comprehensive test cases.

Description

This project contains implementations of various data structures and algorithms with comprehensive test cases. Each topic includes implementations and full test suites to verify correctness.

Project Structure

.
├── src/
│   ├── arrays/
│   │   ├── index.js      # Array utility functions and solutions
│   │   └── index.test.js # Test cases for array operations
│   └── linked-lists/
│       ├── index.js      # Node class implementations
│       └── index.test.js # Test cases for linked list operations
├── package.json          # Project dependencies and scripts
└── README.md            # This file

Installation

Install the required dependencies:

npm install

This will install Vitest, a modern testing framework for JavaScript.

Running Tests

Run all tests with:

npm test

To watch for changes and re-run tests automatically:

npm test -- --watch

Current Features

Linked Lists

  • Node class - Basic node structure with value and next properties
  • reverseLinkedList(list) - Reverse a linked list

Arrays

  • Various array utilities and algorithm solutions

Technologies

  • Runtime: Node.js
  • Testing: Vitest
  • Language: JavaScript (ES Modules)

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors