-
[프로그래머스] 등차수열의 특정한 항만 더하기알고리즘 노트 2023. 10. 12. 10:06
등차수열에서 true만을 계산에 포함하면 된다.
IntStream을 사용하면 조금 더 쉽게 처리할 수 있긴 하지만, 주어진 조건 내에서 처리하는 것은 이정도..
점점 지문이 길고 어려워지는 것 같다.
'알고리즘 노트' 카테고리의 다른 글
[프로그래머스] 원소들의 곱과 합 (0) 2023.10.12 [프로그래머스] 주사위 게임 2 (0) 2023.10.12 [프로그래머스] 코드 처리하기 (0) 2023.10.12 [프로그래머스] flag에 따라 다른 값 반환하기 (0) 2023.10.11 [프로그래머스] 조건 문자열 (0) 2023.10.11