C icon indicating copy to clipboard operation
C copied to clipboard

perf: 1.c faster implementation of the leetcode TwoSum problem

Open straight-into-the-wall opened this issue 4 years ago • 5 comments

Description of Change

A faster and more documented solution of the TwoSum problem on leetcode.

see TwoSum problem on leetcode

Old SubmissionDetail (pdf)

New SubmissionDetail (pdf)

References

Hacktoberfest issue

Checklist

  • [x] Added description of change
  • [x] Added tests and example, test must pass
  • [x] Relevant documentation/comments is changed or added
  • [x] PR title follows semantic commit guidelines
  • [x] Search previous suggestions before making a new one, as yours may be a duplicate.
  • [x] I acknowledge that all my contributions will be made under the project's license.

Notes: faster and more documented solution of the leetcode TwoSum problem

straight-into-the-wall avatar Oct 25 '21 18:10 straight-into-the-wall

I'm expecting this to fail until the #898 will not be solved. For this I proposed two alternative solution in #900 and #901.

straight-into-the-wall avatar Oct 25 '21 18:10 straight-into-the-wall

Let's wait until #901 is merged. Feel free to ping me in case I forgot about this PR. 🙂

Panquesito7 avatar Oct 26 '21 04:10 Panquesito7

Let's wait until #901 is merged. Feel free to ping me in case I forgot about this PR. slightly_smiling_face

ping.

straight-into-the-wall avatar Oct 29 '21 13:10 straight-into-the-wall

@Panquesito7 ping! This PR is ready too.

straight-into-the-wall avatar Nov 21 '21 13:11 straight-into-the-wall

Hi @Panquesito7. Thanks for your time.

This should fix ... if I remember well as it didn't reproduce on my env. Knowing what compilation parameters are used to check will help.

straight-into-the-wall avatar Nov 22 '21 16:11 straight-into-the-wall