Russian flag problem

Fluffy1237

The Russian flag problem is to rearrange an array of characters R, W, and B so that R is the first character, R is followed by a W, W is followed by a B, B is followed by another R, and the pattern repeats.  Design a linear algorithm (pseudo code) for this problem.

    • 12 years ago
    • 20
    Answer(2)

    Purchase the answer to view it

    • russianflag.pdf
    • russianflagjavaprogram.pdf

    Purchase the answer to view it

    NOT RATED
    • russian_flag_algorithm_complete_solution.doc
    Bids(0)