일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자바 소인수분해
- 펙토리얼
- string과 stringbuilder의 차이점
- 티스토리챌린지
- 자바 합성수 찾기
- 왓챠피디아 클론 코딩
- 스프링부트 의존성 설정
- spring boot 배너 설정
- 프로그래머스 문자열 정렬하기(1)
- string과 stringbuilder의 차이
- 모스부호(1) 자바
- 개미 군단 자바
- 자바 팩토리얼
- string과 stringbuilder 성능 최적화
- 접속 url 출력
- 배열 순환 자바
- 배열 순환
- 소인수분해 구하는 공식
- string과 stringbuilder 성능 차이
- 프로그래머스 공 던지기 게임
- 프로그래머스
- 오블완
- 스프링 부트 배너 설정
- 스프링 부트 프로젝트 세팅
- stringbuilder란
- 외계행성의 나이 자바
- string과 stringbuilder
- 경우의 수 자바
- 숨어있는 숫자의 덧셈 (1) 자바
- 배열 순환 문제 공식
- Today
- Total
목록분류 전체보기 (244)
여름 언덕에서 배운 것
class Solution { public int solution(int num1, int num2) { int answer = (int)(((double)num1/num2)*1000); return answer; }}형변환을 버벅이다니..ㅎ
class Solution { public int solution(int[][] board, int k) { int answer = 0; for(int i=0;i
class Solution { public int[][] solution(int[][] arr) { int row = arr.length; int col = arr[0].length; if(row==col){ return arr; } if(row>col){ int[][] answer = new int [row][row]; for(int i=0;i기본적으로 배열을 새로 만들 때 기본 값이 0으로 채워지기 때문에배열 복사 후 남은 공간은 0으로 된다!

class Solution { public int[][] solution(int n) { int[][] answer = new int [n][n]; int x =0; int y=0; // 시작위치 int dir = 0; //방향 int num =1; // 채울 숫자 int[]dx = {0,1,0,-1}; // 행 int[]dy = {1,0,-1,0}; //열 while(num= n || ny = n || answer[nx][ny]!=0){ dir = (dir+1)%4; //방향변경 nx = x+dx[dir];..
class Solution { public int[][] solution(int n) { int[][] answer = new int[n][n]; for(int i=0;i 개선 코드 사실 i==j가 필요 없는 이유는 배열 초기값은 0이고, 0,0 1,1 2,2와 같이 대각선이 같으면 1 int[][] answer = new int[n][n]; // 모든 요소는 0으로 초기화됨 for (int i = 0; i

class Solution { public String solution(String myString) { StringBuilder result = new StringBuilder(); for (char c : myString.toCharArray()) { if (c char 타입의 문자는 내부적으로 유니코드(UTF-16) 값을 가지며, 이는 정수 값으로 변환될 수 있다.
아후 디버깅의 연속 ㅋㅋㅋ class Solution { public String[] solution(String[] picture, int k) { String[] answer = new String[picture.length*k]; String pic = ""; 그림1개당 k배만큼 가로로 늘어나야하고 int count =0; k배만큼 들어가야 세로도 늘어남 ! for(int i=0; i 개선StringBuilder 를 이용, repeat 함수 ! class Solution { public String[] solution(String[] picture, int k) { String[] answer = new Str..