6 Commits

Author SHA1 Message Date
niharikamahajan02
afc6d11844
Added code for findng no of homogenous substrings (#146)
* Create CountHomogenous.php

Added count no of homogenous substrings

* Added program for finding no. of homogenous substrings

* Update Strings/CountHomogenous.php

Co-authored-by: Brandon Johnson <bbj1979@gmail.com>

* Update Strings/CountHomogenous.php

Co-authored-by: Brandon Johnson <bbj1979@gmail.com>

* Update tests/Strings/StringsTest.php

Co-authored-by: Brandon Johnson <bbj1979@gmail.com>

* Update StringsTest.php

* Update Strings/CountHomogenous.php

Co-authored-by: Brandon Johnson <bbj1979@gmail.com>

* Update tests/Strings/StringsTest.php

Co-authored-by: Brandon Johnson <bbj1979@gmail.com>

* Update CountHomogenous.php

* Update tests/Strings/StringsTest.php

* Update tests/Strings/StringsTest.php

* Fix homogenous count unit test

* Fix count homogenous substrings algorithm

* PHPCBF: remove inline control structure

---------

Co-authored-by: Brandon Johnson <bbj1979@gmail.com>
2024-06-13 23:26:17 -06:00
salehhashemi1992
658618ae95 fix comment indents and docs 2023-10-05 10:11:31 +03:30
salehhashemi1992
9c2726203c fix cs errors to follow the psr12 standard and also some minor fixes 2023-10-04 21:50:32 +03:30
Joubert RedRat
f0d85a7125
small refactor on return in function 2023-09-11 23:02:31 +01:00
Brandon Johnson
35ed4625eb update fibonacciSearch.php to FibonacciSearch.php for consistency 2022-07-31 23:06:45 -06:00
Brandon Johnson
2676bb112e add tests/Strings, change String to Strings, code style updates 2022-07-31 23:06:45 -06:00