Giter Club home page Giter Club logo

kg_vposhelyuk_2021's Introduction

kg_VPoshelyuk_2021

Question:

Determine whether a one-to-one character mapping exists from one string, s1, to another string, s2. For example, given s1 = abc and s2 = bcd, print "true" into stdout since we can map each character in "abc" to a character in "bcd". Given s1 = foo and s2 = bar, print "false" since the character ‘o’ cannot map to two characters. But given s1 = bar and s2 = foo, print "true" since each character in "bar" can be mapped to a character in "foo".

Criteria:

✅1. Preferred Languages: ✓JavaScript✓, Golang, Python (Java is also acceptable)

✅2. Upload your solution to GitHub, using the naming convention: "kg_<github_username>_<year_of_graduation>" as the name of your repository.

  • ✅a. i.e: github.com/user123/kg_user123_2021

✅3. Have at least 2 commits into your branch.

  • ✅a. Please make sure that you have a "main" file (main.go/main.js/main.py) in the root directory of your project, and that when you run the file with the test input as arguments, it should print the result in the standard output (please be sure to remove your debugging print statements before you submit, otherwise it could affect how your submission is graded)
  • ✅b. We will run your code in the following manner: node main.js 123 321

✅4. Commit messages should be descriptive to reflect the changes as accurately as possible.

✅5. The final version of your solution must be on the master branch

Some jest test-cases included, run "jest test.js"

kg_vposhelyuk_2021's People

Contributors

vposhelyuk avatar

Watchers

James Cloos 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.