TIL

TIL 241101

muerha 2024. 11. 1. 21:19

 

 

오늘 한 것

 

  • Spring 기초 강의 4주차
  • 알고리즘 
 

[프로그래머스] 자연수 뒤집어 배열로 만들기(Java) *

나의 풀이class Solution { public int[] solution(long n) { String str_n = Long.toString(n); int[] answer = new int[str_n.length()];; int i = 0; while(n > 0){ answer[i++] = (int) (n % 10); n /= 10; } return answer; }} 처음에는 (int) n % 10 으로

muerha.tistory.com

 

 

[프로그래머스] 배열 두 배 만들기 (Java)

나의 풀이class Solution { public int[] solution(int[] numbers) { int[] answer = new int[numbers.length]; for(int i = 0; i     다른 사람의 풀이class Solution { public int[] solution(int[] numbers) { for(int i=0; i

muerha.tistory.com

 

 

  • Lv.0 설계 확인 제출물 피드백 반영API 명세서, SQL 수정. 아직 ERD는 다시 못만들었다..

 

 

'TIL' 카테고리의 다른 글

TIL 241104  (0) 2024.11.04
TIL 241102  (0) 2024.11.02
TIL 241031  (0) 2024.10.31
TIL 241030  (1) 2024.10.30
TIL 241029  (0) 2024.10.29