Piotr Idzik

Results 106 issues of Piotr Idzik

The [_search functions_](https://github.com/TheAlgorithms/Go/tree/master/search) cannot be treated _uniformly_ in tests. The issue arises when the input array contains duplicated entries. Consider the example when we want to fund the index of...

help wanted
dont-close

I have noticed that formatting of some of the files is a bit off (cf. 7c18e42c9643db0ef8a66d9dd85c2a84f2793400). This PR formats some of the files and adds a workflow checking the formatting...

This project is setup to be used in gitpod. However the gitpod badge is missing in `README.md` (other [The Algorithms](https://github.com/TheAlgorithms/) repos have such badge). This PR adds the missing badge.

#### Description of Change There is a memory leak in [`vector.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/vector.c). This PR fixes it (and removes some _trailing spaces_). The _Awesome CI Workflow_ [passes on my end](https://github.com/vil02/C/actions/runs/6162760998). #### References...

dont-close

#### Description of Change There are _two_ memory leaks in [`kruskal.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/graphs/kruskal.c). This PR removes them. #### References #### Checklist - [x] Added description of change - [x] Relevant documentation/comments is...

dont-close

#### Description of Change There is a memory leak in [`dynamic_stack.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/stack/dynamic_stack.c). This PR adds a `delete_stack` function to fix it. #### References #### Checklist - [x] Added description of change...

dont-close

#### Description of Change [`max_heap.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/heap/max_heap.c) has a memory leak. This PR removes it. #### References #### Checklist - [x] Added description of change - [x] Relevant documentation/comments is changed or...

dont-close

#### Description of Change Running [`run_length_encoding.c`](https://github.com/TheAlgorithms/C/blob/e5dad3fa8def3726ec850ca66a7f51521f8ad393/misc/run_length_encoding.c) leads to `heap-buffer-overflow`. The [`encoded`](https://github.com/TheAlgorithms/C/blob/e5dad3fa8def3726ec850ca66a7f51521f8ad393/misc/run_length_encoding.c#L32) is _one too short_. Moreover, there is an error in this test case: https://github.com/TheAlgorithms/C/blob/e5dad3fa8def3726ec850ca66a7f51521f8ad393/misc/run_length_encoding.c#L77 Note that the last character...

dont-close

#### Description of Change Same as TheAlgorithms/Rust#647 - it contains the description of the problem, which this PR solves. #### Checklist - [x] Added description of change - [x] PR...

dont-close

Updates `actions/checkout` to `v4`. Sorry for missing it in #4966. - [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [x] This pull request is all my own work -- I have not...