목록2024/08/11 (1)
오늘도 코딩하나
[백준_javascript] 심화 1 (1157, 2941, 1316, 25206)
#1157 (단어 공부)solution1_Object.const fs = require('fs');const file = process.platform === 'linux' ? '/dev/stdin' : __dirname+'/input.txt';const input = fs.readFileSync(file).toString().trim().toLowerCase().split('');const result = [];input.forEach(x => { result[x] = (result[x] || 0) + 1;})const max = Math.max(...Object.values(result));const maxKey = Object.keys(result).find(x => result[x] === ..
ALGORITHM/BOJ
2024. 8. 11. 17:16