Commit Graph

334 Commits

Author SHA1 Message Date
18ca8fe9c0 test: fix railfence cipher test improper class and func naming 2024-09-10 23:18:00 -06:00
0cb4a4b5f2 updating DIRECTORY.md 2024-06-14 05:42:33 +00:00
8389d29c76 Create SentinelSearch.php (#124)
* Create SentinelSearch.php

Added Sentinel Search algorithm in Searches folder

* Update SentinelSearch.php

* Update SearchesTest.php

Added tests for SentinelSearch.php

* Update DIRECTORY.md

Added link for sentinel search

* Update SearchesTest.php

Testcase corrected

* Updated SentinelSearch.php

* Updated SearchesTest.php

* Update Searches/SentinelSearch.php

* Update Searches/SentinelSearch.php

* Update Searches/SentinelSearch.php

* Update Searches/SentinelSearch.php

* Update Searches/SentinelSearch.php

* Update Searches/SentinelSearch.php

* Update Searches/SentinelSearch.php

---------

Co-authored-by: Brandon Johnson <bbj1979@gmail.com>
2024-06-13 23:42:22 -06:00
5d9350b58f updating DIRECTORY.md 2024-06-14 05:31:05 +00:00
500b1bc44d Two Pointers Algorithm added in PHP/Searches/TwoPointers.php (#152)
* Create TwoPointers.php

Two Pointers technique implementation written in PHP

* Update TwoPointers.php

* Update DIRECTORY.md

* Update TwoPointers.php

* Update TwoPointers.php

* Update SearchesTest.php

* Update TwoPointers.php

* Update TwoPointers.php
2024-06-13 23:30:53 -06:00
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
aa72f5558a updating DIRECTORY.md 2024-06-12 14:53:12 +00:00
2a7be25ff9 Merge pull request #153 from rzarno/master
Bellman-Ford
2024-06-12 08:53:00 -06:00
46582b8702 directory reference for Bellman-Ford 2024-05-17 22:08:48 +02:00
4661257890 Bellman-Ford code formatting 2024-05-05 13:12:27 +02:00
e502f58c80 Bellman-Ford shortest path algorithm PHP implementation 2024-05-05 13:08:47 +02:00
13972e0072 chore: update actions/setup-python to v5 (#148) 2024-01-22 16:46:54 -07:00
09edaaa60b chore: update actions/cache to v3 (#149) 2024-01-22 16:46:27 -07:00
7ef6799467 fix: use GITHUB_ACTOR in git config (#147) 2024-01-15 11:19:37 -07:00
210c00d2c1 updating DIRECTORY.md 2023-12-13 17:30:59 +00:00
747e8d1197 Create BaseX.php (#140)
* Create BaseX.php

This function let's you calculate base X of any number <11

* Update BaseX.php

* Update DIRECTORY.md

* Update BaseX.php

* Update BaseX.php

* Update DIRECTORY.md

Co-authored-by: Brandon Johnson <darwinz>

* Update MathsTest.php

* Update tests/Maths/MathsTest.php

Co-authored-by: Brandon Johnson <darwinz>

* Update MathsTest.php

* Update tests/Maths/MathsTest.php

Co-authored-by: Brandon Johnson <darwinz>

* Update tests/Maths/MathsTest.php

Co-authored-by: Brandon Johnson <darwinz>

---------

Co-authored-by: Brandon Johnson <darwinz>
2023-12-13 10:30:45 -07:00
e0d414bb4a Added Fast Inverse Square root (#142) 2023-10-30 12:22:15 -06:00
33c30c297f Add Gitpod setup (#129)
* Create  .gitpod.Dockerfile

* Create .gitpod.yml

* Add gitpod badge
2023-10-27 11:39:40 -06:00
9e8e95a5ac Adding the Stack Data Structure (#137)
* Adding the Stack Data Structure

* Fixing the Lint Issue
2023-10-23 23:43:28 -06:00
a9e823d096 Merge pull request #141 from afonsocarlos/master
Add Greatest Common Divisor
2023-10-22 18:47:01 -06:00
427faf7a95 Merge pull request #138 from salehhashemi1992/ci/update-checkout-v4
Update GitHub actions/checkout version
2023-10-22 18:43:39 -06:00
7bb7414079 updating DIRECTORY.md 2023-10-22 20:35:49 +00:00
2553639335 Add Greatest Common Divisor 2023-10-22 21:35:08 +01:00
4c3507b562 update checkout to v4 2023-10-17 11:40:11 +03:30
e4457ea9fa updating DIRECTORY.md 2023-10-10 03:46:03 +00:00
7e052840be Merge pull request #135 from Ravikisha/master
Adding the Doubly Linked List in Data Structure
2023-10-09 21:45:50 -06:00
53d6cd64ea Added Atbash Cipher! (#136) 2023-10-09 21:42:42 -06:00
91da583267 Fixes the lint errors 2023-10-10 08:11:21 +05:30
599577bf9a Added Railfence Cipher (#134)
* Feat: Added Railfence Cipher

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-10-08 18:41:13 -06:00
0288d0f468 Update the Directory.md 2023-10-08 14:45:19 +05:30
d4b163a564 Adding The Doubly Linked List In PHP 2023-10-08 14:41:32 +05:30
169b0b3ed0 Merge pull request #128 from anamarijapapic/fix/phpunit-sorting-tests
[PHPUnit testing]: Fix sorting tests not running.
2023-10-08 00:52:14 -06:00
53a432f59d adjust the given ranges in sorting tests. 2023-10-07 09:22:53 +02:00
1d22da3b53 modify xdebug.max_nesting_level. 2023-10-07 09:20:06 +02:00
9910612fb9 adjust the given ranges in sorting tests. 2023-10-07 08:39:39 +02:00
aca121fff0 rename test case class.
- to fix "Test case not matching filename" deprecation warning
2023-10-07 08:33:44 +02:00
9b0cae985e adjust the given ranges in sorting tests.
- shortening the given ranges
- applied on the tests that hit PHP memory_limit
- applied on the tests that exceed the expected duration time
2023-10-07 08:30:28 +02:00
8084046f1b Merge branch 'master' into fix/phpunit-sorting-tests 2023-10-07 08:05:43 +02:00
9f7292dfc1 Merge pull request #126 from anamarijapapic/fix/quicksort-empty-input-validation
[Sorting: QuickSort] Fix empty input validation.
2023-10-06 22:30:55 -06:00
a65714c1be Merge pull request #123 from aryanshb/master
Added Vignere Cipher
2023-10-06 22:19:39 -06:00
b3774d70b0 fix count sort.
- no min and max as function parameters
- count sort tests are now passing
2023-10-06 19:57:48 +02:00
0bfc5b2b75 rename function selectionSorting to selectionSort.
- follows the function naming practices in the folder
- fixes "undefined function selectionSort" in SortingTest.php
- selection sort tests are now passing
2023-10-06 19:28:27 +02:00
831d93b454 Fix: Changes in formatting? 2023-10-06 21:51:15 +05:30
240260b21b Fix: Changes in formatting? 2023-10-06 21:48:11 +05:30
4c77cd2ff8 rename test case class.
- to fix "Test case class not matching filename" deprecation warning
2023-10-06 16:10:18 +02:00
cf9764890d rename SortingTests.php to SortingTest.php.
- made this change so that PHPUnit can execute sorting tests
- sorting tests were previously ignored because of the file name typo
2023-10-06 15:26:57 +02:00
6eea66cddf fix empty input validation. 2023-10-06 14:51:11 +02:00
1e039d22e5 updating DIRECTORY.md 2023-10-05 15:40:18 +00:00
f595b7a71a Feat: Added Vignere Cipher 2023-10-05 21:10:00 +05:30
618fe7f2b5 Merge pull request #122 from salehhashemi1992/ci/setup-code-style-check
Implement PSR-12 Coding Standards and Add CS Check to CI Flow
2023-10-05 00:47:01 -06:00