n^2 배열 자르기1 [프로그래머스] n^2 배열 자르기 Kotlin 안녕하세요. 이번에는 프로그래머스 n^2 배열 자르기 문제를 풀어보려고 합니다. Problem https://school.programmers.co.kr/learn/courses/30/lessons/87390 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr Solution import kotlin.math.max class Solution { fun solution(n: Int, left: Long, right: Long): IntArray { var answer: IntArray = intArrayOf() (left..right).forEach { ans.. 2024. 1. 10. 이전 1 다음 반응형