algorithms
algorithms copied to clipboard
Minimal examples of data structures and algorithms in Python
So I came across this interesting problem that requires us to swap just one character amongst the two strings that are given to us. Once the swap is complete, the...
Added solution for subset sum
Using the two pointer approach.
please assign me
please assign me this task
Resolves minor bug seen from `tests/test_unix.py` under `TestUnixPath`. The original implementation uses `"{}/{}"` which causes the bug when tested under Windows OS. I generalized it with: ```python os.path.join('{}', '{}') ```...
This PR addresses an issue (originally found in unit test run) where the binary values for `1` and `True` (`0` and `False`) are treated equally for this function. ## Changes...