Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*C++*/
- /* Otherwise, bring this row up to the slot for the next free row. */
- std::swap_ranges(toggle.row_begin(pivotRow), toggle.row_end(pivotRow),
- toggle.row_begin(nextFreeRow));
- /* Also, exchange the corresponding entries in the puzzle vector. */
- std::swap(puzzle[pivotRow], puzzle[nextFreeRow]);
- #Python
- toggle[pivotRow], toggle[nextFreeRow] = toggle[nextFreeRow], toggle[pivotRow]
- puzzle[pivotRow], puzzle[nextFreeRow] = puzzle[nextFreeRow], puzzle[pivotRow]
Advertisement
Add Comment
Please, Sign In to add comment