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
//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}); |
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
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]; | |
} |
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
print 'hello' |