there is string of 0 and 1.
The goal is to sort it. 2 pairs can be switched on each step.
For example the mentioned above string can be sorted in following steps:
0. 00010111010
1. 00001111100
2. 00000011111
help please....
Dan_3 0 Newbie Poster
GuruJin 0 Newbie Poster
vmanes 1,165 Posting Virtuoso
Hiroshe 499 Posting Whiz in Training
Dan_3 0 Newbie Poster
GuruJin 0 Newbie Poster
Dan_3 0 Newbie Poster
Hiroshe 499 Posting Whiz in Training
Ilia_1 0 Newbie Poster
GuruJin 0 Newbie Poster
Hiroshe 499 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.