Location in a matrix

For 1D array, we can easily find the location of an element in the array. But for 2D array, it is a bit tricky. Let’s see how we can find the location of an element in a 1D or 2D or maybe a bit more dimentional array.

1

2

3

4

এখানে চতুর্থ নম্বরে যে কাজটা করবেন, খেয়াল করবেন 1D আর 2D এর পার্থক্যটা। এই পার্থক্যটার উপর ভিত্তি করে উপরের 3D/…..ND পর্যন্ত সম্ভব। যেটা বই এ পাবেন।