← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
You are given a 2-D matrix and a list of string commands. Each command must be applied in order to the current state of the matrix. The commands are:
Implement a function that takes the initial matrix and the list of commands and returns the list of strings produced by every "print" command in the order they appear.