This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based/copied on/from article: https://dev.to/petrtcoi/performance-of-the-spread-operator-2bpk | |
// npm install immer immutable ramba lodash @faker-js/faker | |
// node app.js | |
const _ = require('lodash'); | |
const R = require('ramda'); | |
const { Map } = require('immutable') | |
const { produce } = require('immer'); | |
const { faker } = require('@faker-js/faker') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdbool.h> | |
void printBoard(int size, char board[size][size]) | |
{ | |
printf("\n"); | |
for (int i = 0; i < size; i++) { | |
// Print row | |
for (int j = 0; j < size; j++) { | |
printf(" %c ", board[i][j]); |