Skip to content

Commit

Permalink
Finish boards lab hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehul-Gandhi committed Sep 24, 2023
1 parent 3466e5c commit 2fdc946
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cur/programming/lists/hof/ttt/15-row-column-order.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<p> We want to flatten a 2D list into a 1D array in two different ways: row-major order (rmo) and column-major order (cmo).
<bold>For both blocks, recursion is banned. You must use either HOFs or Iteration in your solution. </bold>
<br />
<img class="image-border" src="/bjc-r/img/row-column-order/order.png" alt="Row-Major and Column-Major Order" title="Row-Major and Column-Major Order" width="600" height = "600"/>
<img class="image-border" src="/bjc-r/img/row-column-order/order.png" alt="Row-Major and Column-Major Order" title="Row-Major and Column-Major Order" width="900" height = "600"/>
<br />
<img class="image-border" src="/bjc-r/img/row-column-order/row_column_order_wiki.png" alt="Row-Major and Column-Major Order" title="Row-Major and Column-Major Order" width="400" />
<br />
Expand All @@ -61,6 +61,7 @@
<img class="image-border" src="/bjc-r/img/row-column-order/rmo_example.png" alt="RMO test case" title="RMO test case" />
</li>
</ul>
<br/>

Then, implement the <code>CMO of board</code> block. The input is a 2D board of size NxN (N rows, N columns).
The output is a 1D list in column-major order. The first N items of the list will be the entries in column 1, across all rows.
Expand Down

0 comments on commit 2fdc946

Please sign in to comment.