JSFiddle - React, Tailwind, and code Playground

by alexvestin

JavaScript

let p=(r,c)=>(!(c+1)||r==c)?1:p(r-1,c-1)+p(r-1,c)
console.log("?")
let t=(m,l=m.length) => {
	let r=q=c=1
  for(;r<l*2;r++) {
  	q=r>l?l-r%l:r;
    for(c=Math.min(r,l);c)
  }
  
  console.log("?")
}



console.log(t([[1, 1, 1, 1], [1, 2, 3, 4], [1, 3, 6, 10], [1, 4, 10, 20]]))