Transpose and Flatten

  • + 0 comments

    For the test case, the first input given is exactly: "2 2" Generalising, suppose the input is instead: "n m" To access x and y separately, split can be used to separate the input into: "n" "m" map is used to ensure "n" and "m" are integers. I hope this was clear!