Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Insung-Jo/level_0/더 크게 합치기.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function solution(a, b) {
const value1 = Number(`${a}${b}`);
const value2 = Number(`${b}${a}`);

return Math.max(value1, value2);
}
8 changes: 8 additions & 0 deletions Insung-Jo/level_0/두 수의 연산값 비교하기.js
Original file line number Diff line number Diff line change
@@ -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;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function solution(n) {
return String(n).split("").reverse().map(Number);
}