Skip to content

Repository files navigation

Simple algorithm to check properly nested string

A. Setup

  1. Install node v9+

  2. Install node dependencies

yarn install

B. Code

  1. createDummyFile.js:
    • receive array number (file size) as input, generate dummy file to test
  2. solutionInputString.js:
    • receive string as input
    • return true if input string is properly nested, otherwise return false
  3. solutionInputFile.js:
    • receive fileName as input, use stream to read string from fileName, efficient for very big string
    • return true if input string is properly nested, otherwise return false

C. Run test

yarn test

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages