목록2024/11/30 (2)
기술 블로그
function solution(wallpaper) { var answer = []; let count = 0 let minX // 첫 줄 let minY = 50 let maxX = 0 let maxY // 마지막 줄 for(let str of wallpaper){ const min = str.indexOf("#"); const max = str.lastIndexOf("#"); console.log(max) if(min !== -1 && max !== -1){ // 둘다 빈칸이 아니다 if(minX === undefined){ minX = count ..
function converter(str){ const time = str.split(":").map(Number) const calTime = time[0]*60 + time[1] return calTime}function solution(video_len, pos, op_start, op_end, commands) { var answer = ''; const inputs = [video_len, pos,op_start,op_end] const [calLen, calPos, calOpStart, calOpEnd] = inputs.map((data)=>converter(data)) let result = calPos function next(..