---
title: "#2darray articles | Hashnode"
description: "Explore 9 articles tagged #2darray on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/2darray"
---

Tag

# #2darray

9 posts · 0 followers

[Mikey](https://hashnode.com/@Draken) · [Jan 20, 2025](https://hashnode.com/posts/understanding-2d-matrices-in-javascript/678e5b1ddca97cdc5d476e40)

### [Understanding 2D Matrices in JavaScript](https://draken.hashnode.dev/understanding-2d-matrices-in-javascript?utm_source=hashnode&utm_medium=feed)

In JavaScript, handling 2D matrices (also known as 2D arrays) is a common requirement when working with grids, tables, or spatial data. A 2D matrix is essentially an array of arrays, where each inner array represents a row of elements. Initializing a...

3 min read · [draken.hashnode.dev](https://draken.hashnode.dev/understanding-2d-matrices-in-javascript?utm_source=hashnode&utm_medium=feed)

[Tahzib Mahmud Rifat](https://hashnode.com/@rifat87) · [Jun 30, 2024](https://hashnode.com/posts/cells-with-odd-values-in-a-matrixleetcode-easy/66812674009ba6793fab93d9)

### [Cells with Odd Values in a Matrix(LeetCode-easy)](https://rifat05.hashnode.dev/cells-with-odd-values-in-a-matrixleetcode-easy?utm_source=hashnode&utm_medium=feed)

How to Identify Cells with Odd Numbers in a Matrix

2 min read · [rifat05.hashnode.dev](https://rifat05.hashnode.dev/cells-with-odd-values-in-a-matrixleetcode-easy?utm_source=hashnode&utm_medium=feed)

[Rishabh Kumar](https://hashnode.com/@devRishabh) · [Jun 9, 2024](https://hashnode.com/posts/beginners-guide-to-arrays-learn-and-understand/666579df1595334a8aec4ef3)

### [Beginner's Guide to Arrays: Learn and Understand](https://devrishabh.hashnode.dev/beginners-guide-to-arrays-learn-and-understand?utm_source=hashnode&utm_medium=feed)

Learn C++ arrays: types, indexing, I/O, functions, and algorithms. Ideal for beginners mastering data structures

8 min read · [devrishabh.hashnode.dev](https://devrishabh.hashnode.dev/beginners-guide-to-arrays-learn-and-understand?utm_source=hashnode&utm_medium=feed)

[Rohit kumar](https://hashnode.com/@rohit2024) · [May 4, 2024](https://hashnode.com/posts/2-d-array/6635fcb0d4c1dfd10bb8019d)

### [2-D Array](https://rohitkumar0.hashnode.dev/2-d-array?utm_source=hashnode&utm_medium=feed)

In the 2D Array,There are two sub arrays for the 1st iteration we can use the 1 for loop and for the second iteration we can use second iteration but in order to iterate that, Frist,We have to iterate to the first row then column. but,Remember wh...

1 min read · [rohitkumar0.hashnode.dev](https://rohitkumar0.hashnode.dev/2-d-array?utm_source=hashnode&utm_medium=feed)

[Subhradeep Saha](https://hashnode.com/@subhradeepsaha) · [Apr 28, 2024](https://hashnode.com/posts/solving-a-leetcode-problem-daily-day-3-spiral-matrix-e225fa1f15a9/6635ed7e32becbef7dd0a7f3)

### [Solving a Leetcode problem daily — Day 3: Spiral Matrix](https://subhradeepsaha.hashnode.dev/solving-a-leetcode-problem-daily-day-3-spiral-matrix-e225fa1f15a9?utm_source=hashnode&utm_medium=feed)

Struggling with LeetCode's spiral order matrix problem? This comprehensive guide breaks it down with an efficient C++ code and detained explanation.

7 min read · [subhradeepsaha.hashnode.dev](https://subhradeepsaha.hashnode.dev/solving-a-leetcode-problem-daily-day-3-spiral-matrix-e225fa1f15a9?utm_source=hashnode&utm_medium=feed)

[MOHAMMAD AYMON](https://hashnode.com/@AYMON) · [Jun 27, 2023](https://hashnode.com/posts/javascript-2d-array-two-dimensional-arrays-in-js/649a76af9b73f6ffb3f3c9d9)

### [JavaScript 2D Array – Two Dimensional Arrays in JS](https://ownblog.hashnode.dev/javascript-2d-array-two-dimensional-arrays-in-js?utm_source=hashnode&utm_medium=feed)

JavaScript 2D Array - data structure and algorithms

8 min read · [ownblog.hashnode.dev](https://ownblog.hashnode.dev/javascript-2d-array-two-dimensional-arrays-in-js?utm_source=hashnode&utm_medium=feed)

[Roshan Guragain](https://hashnode.com/@roshangrg) · [Jun 24, 2023](https://hashnode.com/posts/2d-array-matrix/6496d5a4e39ecf89a547fd22)

### [2D Array (Matrix)](https://roshangrg.hashnode.dev/2d-array-matrix?utm_source=hashnode&utm_medium=feed)

2D arrays, also called matrices, are an essential data structure in programming for storing and manipulating multi-dimensional data. Unlike 1D arrays that hold elements in a linear sequence, 2D arrays organize data in a grid-like structure with rows ...

2 min read · [roshangrg.hashnode.dev](https://roshangrg.hashnode.dev/2d-array-matrix?utm_source=hashnode&utm_medium=feed)

[Alok Yadav](https://hashnode.com/@alokys) · [Jan 7, 2023](https://hashnode.com/posts/spiral-matrix-problem-2d-arrays/63b9cb6f93c48b0f630befb0)

### [Spiral Matrix Problem (2d Arrays)](https://alokyadav.hashnode.dev/spiral-matrix-problem-2d-arrays?utm_source=hashnode&utm_medium=feed)

Guys this is one of the most asked problems in company interviews, previously it was asked by Flipkart, PayPal and many more. So let's start with the problem. In this problem, you will be given one matrix,let's say the matrix is {{ 1, 2, 3, 4} { 5, ...

2 min read · [alokyadav.hashnode.dev](https://alokyadav.hashnode.dev/spiral-matrix-problem-2d-arrays?utm_source=hashnode&utm_medium=feed)

[Miriam Smith](https://hashnode.com/@MimsyDev) · [Jan 5, 2023](https://hashnode.com/posts/using-2d-arrays-to-randomly-position-ships-in-battleships/63b6900b91ede34189469038)

### [Using 2D arrays to randomly position "ships" in Battleships](https://mimsydev.hashnode.dev/using-2d-arrays-to-randomly-position-ships-in-battleships?utm_source=hashnode&utm_medium=feed)

How to use Java's Random class for this without getting overlapping coordinates

3 min read · [mimsydev.hashnode.dev](https://mimsydev.hashnode.dev/using-2d-arrays-to-randomly-position-ships-in-battleships?utm_source=hashnode&utm_medium=feed)
