This file contains 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
function numOfPathsToDest(n) { | |
if (n === 1) return 1; | |
let lastRow = new Array(n).fill(1); | |
let currentRow = []; | |
for (let row = 1; row < n; row++) { | |
for (let col = row; col < n; col++) { | |
const lastCol = col > row ? currentRow[col - 1] : 0; | |
currentRow[col] = lastRow[col] + lastCol; | |
} |
This file contains 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
const path = require('path') | |
const webpack = require('webpack') | |
const ExtractTextPlugin = require('extract-text-webpack-plugin') | |
const HtmlWebpackPlugin = require('html-webpack-plugin') | |
const CopyWebpackPlugin = require('copy-webpack-plugin') | |
module.exports = { | |
// Entry files for our popup and background pages | |
entry: { | |
popup: './src/popup.js', |