Skip to content

Comments

Add Binary Parity Pattern Algorithm#13585

Open
surlogu wants to merge 6 commits intoTheAlgorithms:masterfrom
surlogu:master
Open

Add Binary Parity Pattern Algorithm#13585
surlogu wants to merge 6 commits intoTheAlgorithms:masterfrom
surlogu:master

Conversation

@surlogu
Copy link

@surlogu surlogu commented Oct 18, 2025

🧩 Add Binary Parity Pattern Algorithm

Description

Added a new algorithm Binary Parity Pattern that generates a binary sequence based on the parity (even/odd) of cumulative bit sums from a number’s binary representation.

Example:
13 (1101) → cumulative [1,2,3,4] → pattern 1010 → '0b1010'


Type of Change

  • Add an algorithm

File Added

bit_manipulation/binary_parity_pattern.py

@algorithms-keeper algorithms-keeper bot added the awaiting reviews This PR is ready to be reviewed label Oct 18, 2025
@algorithms-keeper algorithms-keeper bot added the tests are failing Do not merge until tests pass label Oct 18, 2025
@surlogu surlogu closed this Oct 20, 2025
@surlogu surlogu reopened this Oct 20, 2025
@algorithms-keeper algorithms-keeper bot added tests are failing Do not merge until tests pass and removed tests are failing Do not merge until tests pass labels Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed tests are failing Do not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant