오늘은 정렬 파트를 공부해야 되서 일단 선택정렬과 버블정렬을 공부했다
Create 12-15 선택정렬.md · NayoungBae/oneday-onesolve@5e0d688
Permalink This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Browse files Create 12-15 선택정렬.md Loading branch information Showing 1 changed file with 50 additions and 0 deletions. +50
github.com
Create 12-15 버블정렬.md · NayoungBae/oneday-onesolve@ea448e4
Permalink This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Browse files Create 12-15 버블정렬.md Loading branch information Showing 1 changed file with 48 additions and 0 deletions. +48
github.com
먼저 코드의 흐름을 기억하고 이것 가지고 문제를 풀었다
하지만 런타임에러가 걸려서 통과를 못 했다
결국 어떻게 푸는 지 찾아봤다
https://st-lab.tistory.com/111
[백준] 11651번 : 좌표 정렬하기 2 - JAVA [자바]
www.acmicpc.net/problem/11651 11651번: 좌표 정렬하기 2 첫째 줄에 점의 개수 N (1 ≤ N ≤ 100,000)이 주어진다. 둘째 줄부터 N개의 줄에는 i번점의 위치 xi와 yi가 주어진다. (-100,000 ≤ xi, yi ≤ 100,00..
st-lab.tistory.com
이 풀이에서는 Arrays.sort 함수를 사용했다
sort 함수를 사용할 때 익명함수(람다)를 사용해서 정렬을 해줬다
하지만 나는 익명함수에 대해 잘 알지도 않았고, 두번째 매개변수에 대해 아는 것도 없었다
마침 이 블로그에 Comparator, Comparable을 자세하게 설명해준 글이 있었다
https://st-lab.tistory.com/243
자바 [JAVA] - Comparable 과 Comparator의 이해
아마 이 글을 찾아 오신 분들 대개는 Comparable과 Comparator의 차이가 무엇인지 모르거나 궁금해서 찾아오셨을 것이다. 사실 알고보면 두 개는 그렇게 어렵지 않으나 아무래도 자바를 학습하면서 객
st-lab.tistory.com
Arrays.sort 함수에 대해 읽어봐도 와닿지 않아 정리도 해봤다
직접 정리해보니까 그제서야 이해할 수 있게 되었다
이렇게 정리를 하고 다시 풀이를 보니까 이해할 수 있었다
이제 sort 함수의 정렬 방법을 잘 활용할 수 있게 되었다
chapter5: 이분탐색, 재귀, 정렬
F) 좌표 정렬하기2
Create F)좌표_정렬하기2(2021-12-16).md · NayoungBae/oneday-onesolve@31fd94f
Permalink This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Browse files Create F)좌표_정렬하기2(2021-12-16).md Loading branch information Showing 1 changed file with 113 additions and 0
github.com
면접 질문 대비
https://nazero.tistory.com/172
2021.12.16 면접 질문 준비(수정필요) - Part 1. 전산 기초 : 데이터베이스
Transaction 트랜잭션(Transaction)이란 무엇인가? 트랜잭션은 데이터베이스의 상태를 변화시키기 위해 수행하는 '작업의 단위' 입니다 여기서 데이터베이스의 상태를 변화시킨다는 것은 INSE
nazero.tistory.com
'항해99 3기' 카테고리의 다른 글
[TIL] 2021.12.18 - 이력서 / 자소서 작성 / 면접 질문 대비 (0) | 2021.12.19 |
---|---|
[TIL] 2021.12.17 - 코딩 테스트 준비중 - 이진트리 순회(깊이우선탐색) / 면접 질문 대비 (0) | 2021.12.19 |
2021.12.18 면접 질문 준비(수정필요) - SpringBoot/Spring (0) | 2021.12.19 |
2021.12.17 면접 질문 준비(수정필요) - Java (0) | 2021.12.19 |
2021.12.16 면접 질문 준비(수정필요) - Part 1. 전산 기초 : 데이터베이스 (0) | 2021.12.19 |