7 kyu
Swap Row In Certain Columns of a Matrix
146ChaiTeaNunes
Description:
In this kata, you will need to make a function that can swap the rows of specified matrices. Example:
matrix = [[0, 1],
[2, 3]]
swap(matrix, 0, 1, 0) # Matrix, 1st row to swap, 2nd row to swap, columns
should return
[[2, 1],
[0, 3]]
because the 0th row is being swaped with the 1st row, but only in the 0th column.
Matrix
Linear Algebra
Puzzles
Similar Kata:
Stats:
Created | May 8, 2016 |
Published | May 8, 2016 |
Warriors Trained | 237 |
Total Skips | 6 |
Total Code Submissions | 323 |
Total Times Completed | 146 |
Python Completions | 146 |
Total Stars | 4 |
% of votes with a positive feedback rating | 88% of 45 |
Total "Very Satisfied" Votes | 36 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 36 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |