March 2019
Intermediate to advanced
336 pages
9h 9m
English
In this section, we will look at the basic operations on the two-dimensional matrix. Let's start with initializing the matrices.
matrix1 and matrix2 are initialized in the following code snippet:
var matrix1 = [2][2] int{ {4,5}, {1,2}}var matrix2 = [2][2] int{ {6,7}, {3,4}}
The add, subtract, multiply, transpose, and inversion operations are presented in the next few sections. For this section, please refer to the binary_search_tree.go file.
Read now
Unlock full access