Skip to content

LashaJini/dsa

Repository files navigation

data structures and algorithms

running tests

min requirements:

  • node v12.21.0
  • npm 7.13.0
  • rustc 1.50.0
  • cargo 1.50.0
# clone repo
git clone git@github.com:109149/dsa.git
cd dsa

js

# install npm dependencies to run tests against js solutions
npm install
npm test

# running tests for specific file
npm test <regex>
# example running tests against _1.rs
npm test _1

# watch mode
npm run test:watch
npm run test:watch <regex>

rust

# to run tests against rust solutions
cargo test
# or
cargo t

# running tests for specific file
cargo t <regex>
# example running tests against _1.rs
cargo t _1

table

# link solution(s) source difficulty keywords
17 Redistribute Characters to Make All Strings Equal js leetcode easy string
16 Balance a Binary Search Tree rust, js leetcode medium sorting,BST
15 Convert Sorted Array to Binary Search Tree rust, js leetcode easy BST
14 Binary Search Tree to Greater Sum Tree rust, js leetcode medium BST
13 Maximum Ascending Subarray Sum rust, js leetcode easy
12 Longer Contiguous Segments of Ones than Zeros rust, js leetcode easy
11 Intersection of Two Arrays rust, js leetcode easy
10 Split Two Strings to Make Palindrome rust, js leetcode medium string
9 Split a String in Balanced Strings rust, js leetcode easy string
8 Largest Substring Between Two Equal Characters rust, js leetcode easy string
7 Check If Two String Arrays are Equivalent rust, js leetcode easy string
6 Count Items Matching a Rule rust, js leetcode easy string
5 Count the Number of Consistent Strings rust, js leetcode easy string
4 Goal Parser Interpretation rust, js leetcode easy string
3 Defanging an IP Address rust, js leetcode easy string
2 Sorting the Sentence rust, js leetcode easy sorting
1 Shuffle String rust, js leetcode easy sorting

About

Solutions for problems mostly written in rust and javascript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published