diff --git "a/Insung-Jo/level_0/\353\215\224\342\200\205\355\201\254\352\262\214\342\200\205\355\225\251\354\271\230\352\270\260.js" "b/Insung-Jo/level_0/\353\215\224\342\200\205\355\201\254\352\262\214\342\200\205\355\225\251\354\271\230\352\270\260.js" new file mode 100644 index 0000000..6d7e612 --- /dev/null +++ "b/Insung-Jo/level_0/\353\215\224\342\200\205\355\201\254\352\262\214\342\200\205\355\225\251\354\271\230\352\270\260.js" @@ -0,0 +1,6 @@ +function solution(a, b) { + const value1 = Number(`${a}${b}`); + const value2 = Number(`${b}${a}`); + + return Math.max(value1, value2); +} diff --git "a/Insung-Jo/level_0/\353\221\220\342\200\205\354\210\230\354\235\230\342\200\205\354\227\260\354\202\260\352\260\222\342\200\205\353\271\204\352\265\220\355\225\230\352\270\260.js" "b/Insung-Jo/level_0/\353\221\220\342\200\205\354\210\230\354\235\230\342\200\205\354\227\260\354\202\260\352\260\222\342\200\205\353\271\204\352\265\220\355\225\230\352\270\260.js" new file mode 100644 index 0000000..ae0574e --- /dev/null +++ "b/Insung-Jo/level_0/\353\221\220\342\200\205\354\210\230\354\235\230\342\200\205\354\227\260\354\202\260\352\260\222\342\200\205\353\271\204\352\265\220\355\225\230\352\270\260.js" @@ -0,0 +1,8 @@ +function solution(a, b) { + const first_operation = Number(`${a}${b}`); + const second_operation = 2 * a * b; + + if (first_operation > second_operation) return first_operation; + if (first_operation === second_operation) return first_operation; + return second_operation; +} diff --git "a/Insung-Jo/level_1/\354\236\220\354\227\260\354\210\230\342\200\205\353\222\244\354\247\221\354\226\264\342\200\205\353\260\260\354\227\264\353\241\234\342\200\205\353\247\214\353\223\244\352\270\260.js" "b/Insung-Jo/level_1/\354\236\220\354\227\260\354\210\230\342\200\205\353\222\244\354\247\221\354\226\264\342\200\205\353\260\260\354\227\264\353\241\234\342\200\205\353\247\214\353\223\244\352\270\260.js" new file mode 100644 index 0000000..fdbeca9 --- /dev/null +++ "b/Insung-Jo/level_1/\354\236\220\354\227\260\354\210\230\342\200\205\353\222\244\354\247\221\354\226\264\342\200\205\353\260\260\354\227\264\353\241\234\342\200\205\353\247\214\353\223\244\352\270\260.js" @@ -0,0 +1,3 @@ +function solution(n) { + return String(n).split("").reverse().map(Number); +} \ No newline at end of file