Russian flag problem | Computer Science homework help

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.

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount