Commit Graph

9 Commits

Author SHA1 Message Date
Donne Martin
b598f474af
#273: Remove nose dependency for arrays_strings/ (#274) 2020-07-04 10:56:49 -04:00
Kevin George
ba3fb473b1 Add a test case for compress string challenge (#199) 2017-06-19 21:03:15 -04:00
Marek Piskorek
a88f0a0b0b Add two more test cases for string compress coding challenge. (#125)
* Add two more test cases for string compress coding challenge.

I believe that the existing test cases are not strict enough to assure
a proper solution for this challenge.

I was able to implement a wrong, but still passing solution to this
basing on set and collections.Counter mechanism, since the test cases
present only situations with singular occurrences of a letter chain and
all the test strings are alphabetically sorted.

I believe that the two new test cases enforce more thorough approach to
the problem and, in effect, the test cases are more descriptive.

* Fix the results in tests since the solution changed in the meantine on
original branch.

* Update also the test_compress and solution.
2016-11-30 07:41:16 -05:00
Donne Martin
aa887db2e0 Move string compress to a class, update test 2016-08-13 06:37:48 -04:00
Donne Martin
186a192c61 Update array compress unit test to match solution and challenge notebooks. 2016-02-10 06:29:22 -05:00
Donne Martin
4953e6c114 Update compress solution so AAAAB becomes A4B.
Previously the solution would yield A4B1, which doesn't have as much compression.
2016-02-09 06:52:32 -05:00
Donne Martin
374d67ff30 Fix #13, PEP8-ify notebooks. 2015-07-11 15:34:14 -04:00
Donne Martin
73924c279a Removed bytearray solution, needs some tweaks to make it work with Python 3. 2015-07-06 06:30:00 -04:00
Donne Martin
8b9a1473ea Added compress challenge. 2015-07-03 19:55:56 -04:00