Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge cases to count number of zeros. #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paurush11
Copy link

if the given array is -- [0,o,1,I,2,3] (o,I for visible change)
the diff = 1
result =
1 - {0,1,2}, {o,I,3}
2 - {o,1,2}, {0,I,3}
3 - {0,o,1,2}, {I,3}
4 - {1,2} {0,o,I,3}
5- {0,I,2}, {o,1,3}
6- {o,I,2}, {0,1,3}
7 -{o,I,2}, {0,1,3}
8 -{0,o,I,2}, {1,3}
9 -{ I,2} , { 0,o,1,3}
10 -{1,I,2} ,{3,0,o}
11 -{1,I,2,o} ,{3,0}
12 - {1,I,2,0} ,{3,o}
13 - {1,I,2,0,o} ,{3}

if the given array is -- [0,o,1,I,2,3] (o,I for visible change)
the diff = 1
result = 
1 - {0,1,2}, {o,I,3}
2 - {o,1,2}, {0,I,3}
3 - {0,o,1,2}, {I,3}
4 - {1,2} {0,o,I,3}
5- {0,I,2}, {o,1,3}
6- {o,I,2}, {0,1,3}
7 -{o,I,2}, {0,1,3}
8 -{0,o,I,2}, {1,3}
9 -{ I,2} , { 0,o,1,3}
10 -{1,I,2} ,{3,0,o}
11 -{1,I,2,o} ,{3,0}
12 - {1,I,2,0} ,{3,o}
13 - {1,I,2,0,o} ,{3}
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.

1 participant