algorithms icon indicating copy to clipboard operation
algorithms copied to clipboard

Minimal examples of data structures and algorithms in Python

Results 157 algorithms issues
Sort by recently updated
recently updated
newest added

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...

Using the two pointer approach.

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...