7 kyu

Basics 04: Rotate Matrix

168 of 2,020smile67

Description:

Your task is to rotate a matrix 90 degree to the left. The matrix is an array of integers with dimension n,m. So this kata checks some basics, it's not too difficult.

There's nothing more to explain, no tricks, no "bad cases";-). Perhaps you take a look at the testcases...

One easy example:

Input: {{-1, 4, 5},
        { 2, 3, 4}}

Output: {{ 5, 4},
         { 4, 3},
         {-1, 2}}

First there are some static tests, later on random tests too...

Hope you have fun:-)!

Fundamentals
Mathematics
Arrays
Matrix

Stats:

CreatedFeb 6, 2016
PublishedFeb 6, 2016
Warriors Trained3456
Total Skips104
Total Code Submissions5533
Total Times Completed2020
C# Completions168
JavaScript Completions1308
C++ Completions263
C Completions68
Python Completions273
Total Stars54
% of votes with a positive feedback rating92% of 295
Total "Very Satisfied" Votes254
Total "Somewhat Satisfied" Votes35
Total "Not Satisfied" Votes6
Total Rank Assessments11
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • smile67 Avatar
  • CursedFlames Avatar
  • myjinxin2015 Avatar
  • Dentzil Avatar
  • user9644768 Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • akar-0 Avatar
Ad