Lesson 17 of 34
2D Arrays: Matrices
10 min 30 XP
2D array rows और columns वाली तालिका है, जिसे m[row][col] से पढ़ते हैं। m.length rows की संख्या और m[0].length columns की संख्या है।
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.Transpose: m[r][c] को t[c][r] में रखें। Matrix का एक लोकप्रिय interview सवाल।