Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 쿼리
- Git
- db
- 자바
- oracle
- 프로그래머스
- 생성
- mybatis
- 스프링
- 시큐리티
- 알고리즘
- 오라클
- jquery
- Spring
- IntelliJ
- 방법
- Security
- error
- Vue
- kotlin
- 코틀린
- JPA
- 에러
- GitHub
- 넥사크로
- aws
- Eclipse
- JavaScript
- Java
- 함수
Archives
- Today
- Total
목록음양 더하기 (1)
송민준의 개발노트
[프로그래머스] 음양 더하기
https://programmers.co.kr/learn/courses/30/lessons/76501?language=java 코딩테스트 연습 - 음양 더하기 어떤 정수들이 있습니다. 이 정수들의 절댓값을 차례대로 담은 정수 배열 absolutes와 이 정수들의 부호를 차례대로 담은 불리언 배열 signs가 매개변수로 주어집니다. 실제 정수들의 합을 구하여 re programmers.co.kr class Solution { public int solution(int[] absolutes, boolean[] signs) { int result = 0; for(int i = 0; i < absolutes.length; i++) { result += absolutes[i] * (signs[i] ? 1 : -1..
알고리즘/프로그래머스
2022. 4. 24. 13:23