Sitelet https://web.archive.org/web/20260603194455/https://github.com/TheAlgorithms/Python/pull/2101
Skip to content

Find non-duplicate#2101

Closed
akashvshroff wants to merge 2 commits into
TheAlgorithms:masterfrom
akashvshroff:patch-4
Closed

Find non-duplicate#2101
akashvshroff wants to merge 2 commits into
TheAlgorithms:masterfrom
akashvshroff:patch-4

Conversation

@akashvshroff
Copy link
Copy Markdown
Contributor

Find the non-duplicate number using bit manipulation!

Describe your change:

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

Find the non-duplicate number using bit manipulation!
@TravisBuddy
Copy link
Copy Markdown

Hey @akashvshroff,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: 6d22b7e0-aca3-11ea-8245-836d9da6cb4c

@TravisBuddy
Copy link
Copy Markdown

Hey @akashvshroff,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: 67c5e5c0-aca7-11ea-8245-836d9da6cb4c

@TravisBuddy
Copy link
Copy Markdown

Hey @akashvshroff,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: 7263d590-aca8-11ea-8245-836d9da6cb4c

Comment thread bit_manipulation/unique_in_array_xor.py Outdated
Co-authored-by: Christian Clauss <cclauss@me.com>
@TravisBuddy
Copy link
Copy Markdown

Hey @akashvshroff,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: 6b2cfe10-ae32-11ea-b5ce-3bd953fd8c80

@akashvshroff
Copy link
Copy Markdown
Contributor Author

This program is meant to find the only non-duplicate in an array of duplicate numbers and one unique number!

@cclauss cclauss closed this Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants