'Nothing prints to terminal using a 2D array of numbers in Typescript

Trying to solve a leetcode problem. But, I am getting hung up on something that I feel like should be easy. I am trying to print the test input to terminal before going ahead with this problem. Any idea why this portion of my code is not working? Please don't solve the whole leetcode problem for me. I should also add that I am running this file using tsc longestincreasingpathinmatrix.ts. So, I do not think that is the problem.

interface firstHashmap<arg> {
  (arg: number): number;
}

function allHashmaps<arg>(arg: number): number {
  return arg;
}

function longestIncreasingPath(matrix: number[][]): number {
  // number: number[][] - list we using :)
  let myHashMap: firstHashmap<number> = allHashmaps;

  for(let i = 0; i < matrix.length; i++) {

     for(let j = 0; j < matrix[j].length; j++) {

        console.log(matrix[i][j]);  // give me the numbers
     }
  }


return 7;





// two lists
// square of numbers
// longest path in square
// can move left right, right, up, or, down
// example is giving me the answer

// hash map - sort
// all increasing numbers any amount

// the numbers must be sorted for the hashmap to work
// how to store an array of arrays in a hashmap
// the numbers start from lowest and go to the highest
// and there can be any amount = if there are too many numbers they won't fit = Max size of hashmap for constant time lookup

// refer to two lists using a hashmap?
};

let testMatrix = [[9,9,4],[6,6,8],[2,1,1]];
longestIncreasingPath(testMatrix);


Solution 1:[1]

i think it can help you:

image

var main = document.querySelector('div[role=main]');
var el = main.querySelector('span[email]');
var senderEmail = el.getAttribute('email');
var querySearch = 'from:(' + senderEmail + ')';
var queryUrl = 'https://mail.google.com/mail/u/0/#search/' + querySearch;
window.location.href = queryUrl;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Peter Csala