Giter Site home page Giter Site logo

kotlinwordladder's Introduction

KotlinWordLadder

Kotlin Word Ladder solver

Running

In IDE, run main.kt

Or use the built jar (see built/kotlinWordLadder.jar) and run from terminal...

$ java -jar kotlinWordLadder.jar

WordLadder> Enter start word: cat
WordLadder> Enter final word: dog
WordLadder> Maximum ladder length? [1-20, or return]: 
            No answer - assuming auto calc of minimum ladder length
  Took 53.31ms to load dictionary
  Took 15.36ms to determine minimum ladder length of 4
  Took 16.63ms to find 4 solutions (explored 38 solutions)
WordLadder> List solutions? (Enter 'n' for no, 'y' or return for next 10, 'all' for all or how many): 
  1/4  [CAT, CAG, COG, DOG]
  2/4  [CAT, CAG, DAG, DOG]
  3/4  [CAT, COT, COG, DOG]
  4/4  [CAT, COT, DOT, DOG]

WordLadder> Run again? [y/n]: n

Or from terminal with start and final word args...

$ java -jar kotlinWordLadder.jar cat dog

Took 91.78ms to load dictionary
Took 16.09ms to determine minimum ladder length of 4
Took 20.31ms to find 4 solutions (explored 38 solutions)
[CAT, CAG, COG, DOG]
[CAT, CAG, DAG, DOG]
[CAT, COT, COG, DOG]
[CAT, COT, DOT, DOG]

kotlinwordladder's People

Contributors

marrow16 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.