공부
-
[programmers] 제일 작은 수 제거하기 / C++공부/PS (programmers) 2022. 7. 19. 23:02
https://school.programmers.co.kr/learn/courses/30/lessons/12935 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include #include #include using namespace std; vector solution(vector arr) { vector answer; if(arr.size() == 1) answer.push_back(-1); else { int minNum = *min_element(arr.begin(), arr.end()); //cout
-
[programmers] 소수 만들기 / C++공부/PS (programmers) 2022. 7. 19. 22:33
https://school.programmers.co.kr/learn/courses/30/lessons/12977 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include #include using namespace std; int answer = 0; int visited[1001]; int sel[10]; int isPrime(int num) { if(num == 1) return 0; // 소수 X int root = sqrt(num); for(int i=2; i= 3) { int sum = 0; for(int i=0; i
-
[programmers] 두 개 뽑아서 더하기 / C++공부/PS (programmers) 2022. 7. 19. 22:14
https://school.programmers.co.kr/learn/courses/30/lessons/68644 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include #include #include #include using namespace std; set s; vector solution(vector numbers) { vector answer; int size = numbers.size(); for(int i=0; i
-
Adafruit ESP32 Feather V2 CH2102F 사용해보기 (1) - 환경설정부터 예제 코드 실행까지공부/etc 2022. 6. 22. 23:16
1. Arduino IDE setup 참고) https://learn.adafruit.com/adafruit-esp32-feather-v2/arduino-ide-setup 1) CP210x Windows Drivers 설치 https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers CP210x USB to UART Bridge VCP Drivers - Silicon Labs The CP210x USB to UART Bridge Virtual COM Port (VCP) drivers are required for device operation as a Virtual COM Port to facilitate host communication with ..
-
[programmers] DATETIME에서 DATE로 형 변환공부/PS ( SQL) 2022. 5. 20. 23:57
https://programmers.co.kr/learn/courses/30/lessons/59414 코딩테스트 연습 - DATETIME에서 DATE로 형 변환 ANIMAL_INS 테이블은 동물 보호소에 들어온 동물의 정보를 담은 테이블입니다. ANIMAL_INS 테이블 구조는 다음과 같으며, ANIMAL_ID, ANIMAL_TYPE, DATETIME, INTAKE_CONDITION, NAME, SEX_UPON_INTAKE는 각각 동물의 아이디 programmers.co.kr SELECT ANIMAL_ID, NAME, date_format(DATETIME, '%Y-%m-%d') AS 날짜 FROM ANIMAL_INS ORDER BY ANIMAL_ID DATETIME 형식의 데이터를 원하는 형식으로 출력할..
-
[programmers] 입양 시각 구하기(2)공부/PS ( SQL) 2022. 5. 20. 23:53
https://programmers.co.kr/learn/courses/30/lessons/59413 코딩테스트 연습 - 입양 시각 구하기(2) ANIMAL_OUTS 테이블은 동물 보호소에서 입양 보낸 동물의 정보를 담은 테이블입니다. ANIMAL_OUTS 테이블 구조는 다음과 같으며, ANIMAL_ID, ANIMAL_TYPE, DATETIME, NAME, SEX_UPON_OUTCOME는 각각 동물의 아이디, 생물 programmers.co.kr SET @HOUR := -1; SELECT @HOUR:= @HOUR + 1 AS HOUR, (SELECT COUNT(*) FROM ANIMAL_OUTS WHERE HOUR(DATETIME) = @HOUR) AS COUNT FROM ANIMAL_OUTS WHERE..
-
[programmers] 없어진 기록 찾기공부/PS ( SQL) 2022. 5. 20. 23:32
https://programmers.co.kr/learn/courses/30/lessons/59042 코딩테스트 연습 - 없어진 기록 찾기 ANIMAL_INS 테이블은 동물 보호소에 들어온 동물의 정보를 담은 테이블입니다. ANIMAL_INS 테이블 구조는 다음과 같으며, ANIMAL_ID, ANIMAL_TYPE, DATETIME, INTAKE_CONDITION, NAME, SEX_UPON_INTAKE는 각각 동물의 아이디 programmers.co.kr SELECT O.ANIMAL_ID, O.NAME FROM ANIMAL_OUTS AS O LEFT JOIN ANIMAL_INS AS I ON O.ANIMAL_ID = I.ANIMAL_ID WHERE I.ANIMAL_ID IS NULL ORDER BY O...