Skip to content

Instantly share code, notes, and snippets.

View nguyenhuumy's full-sized avatar
🤔
.

My Nguyen nguyenhuumy

🤔
.
  • Altitude-sports
  • Canada
View GitHub Profile
//input N, S
N = 1; var S = "";
var Table = {}
var COMBO = ['ABC', 'DEF', 'EFG', 'HJK'];
for (var i = 0; i < N; i++) {
Table[i] = [];
for (var j=0; j < COMBO.length; j++) {
Table[i].push({family: COMBO[j], available: true});
function solution(A) {
// write your code in JavaScript (Node.js 6.4.0)
function Klass(index, array) {
this._index = index;
this._array = array;
}
Klass.prototype = {
value: function () {
return this._array[this._index];
}
print 'hello'