Skip to content

Instantly share code, notes, and snippets.

View albertininm's full-sized avatar
😀

Albertinin Mourato Santos albertininm

😀
View GitHub Profile
{
err: undefined,
req: <ref *1> IncomingMessage {
_readableState: ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: null,
@albertininm
albertininm / index.js
Created May 20, 2022 16:12
unique-paths-ii
/**
* @param {number[][]} obstacleGrid
* @return {number}
*/
var uniquePathsWithObstacles = function(obstacleGrid) {
const m = obstacleGrid.length;
const n = obstacleGrid[0].length;
const numberOfValidPaths = new Array(m);