Skip to content

RovingCodeMonkey/prj-sequence-typescript-word-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sequence

The Problem: Take in an input and check if it's permutations contain valid words provided in an array.

input: "oogd" validWords: ["good", "god", "dog", "goo", "do", "go"]

Solution included as WordFinder.ts Example

    let wordFinder = new WordFinder();
    let testString = 'oogd';
    let validWords = ["good", "god", "dog", "goo", "do", "go"];
    let result = wordFinder.find(testString, wordsList);

To run the test code

npm install
npm test

About

Short Take home project in JavaScript for Sequence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published