Skip to content

nchernia/codeChallengeAiden

Repository files navigation

codeChallengeAiden

1A bucket challenge:

Open the terminal, when call python bucketChallenge.py, you shall give the parameters in the following format:

  1. At the first line, your entries are bucket sizes.
  2. At the second line, type in the target size.

    e.g.
    INPUT:
    4 5 6
    7
    OUTPUT:
    0

1B phone number:

In num2words.html, you will see an input box that allows you to enter your phone number.
After clicking on button "convert", the transformed words would show as a pop-up window,
(Or you can modify the code so that the output will be in the output box)
The transformation rule is to the left of the input box and for the sake of convenience
we only allow ten predisgnated words of length 3 to be transformed.
The output would be the transformed words, if any, plus the transformed letter of the numbers
and it is convenient for you to associate the letters that do not form words yet with your favorite words.

e.g.
INPUT:
3333450000
OUTPUT:
mummy Mrs zzzz
With these words and letters, you can associate to a scenario in where a female mummy is sleeping.

2 file challenge:

Assume the input file would be txt files ("*.txt").
Our output would also be a txt file in which the quantifier and names are alinged in a desired format.
Besides, file1.txt and file2.txt are two examples of input file
target.txt is the output file where we will generate desired format.
Note that you can change the names of input files in fileChallenge.py

About

This is a code challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published