일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- for문
- 코드스테이츠
- 재귀함수
- Hackerrank
- node.js
- 최강의 인생
- join
- 코플릿
- array.push()
- 자바스크립트
- select
- 블록체인
- SQL
- JavaScript
- array
- 개발자의 책장
- 프로그래머스
- 역행자
- 코딩공부
- Where
- Algorithms
- MySQL
- 코딩테스트
- 알고리즘
- 개발자_조이킴
- array.slice()
- Developer_JoyKim
- 배열
- Programmers
- 정규표현식
- Today
- Total
목록개발자_조이킴 (132)
CodingSpace
What: 사용자 루트 계정으로 사용하는 것은 위험함 권한이 어느정도 제한된 부계정을 사용하여 개발하는 것이 일반적 -- 사용자 조회 USE mysql; SELECT *FROM user; 사용자 생성 -- 사용자 생성 CREATE USER (사용자 이름_주소) IDENTIFIED BY (패스워드) CREATE USER 'user_1`'@'%' IDENTIFIED BY 'abcdefg'; 사용자 삭제 -- 사용자 삭제 DROP USER 'user_1'@'%'; 권한 -- 사용자 권한 추가 -- user_1에게 business 테이블에 대한 SELECT 권한 부여 GRANT SELECT ON mydatabase.businesses TO 'user_1'@'%'; 사용자 권한 조회 -- 사용자 권한 조회 SHO..
Problem. 단어 변환 Link. https://school.programmers.co.kr/learn/courses/30/lessons/43163 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr Description. 두 개의 단어 begin, target과 단어의 집합 words가 있습니다. 아래와 같은 규칙을 이용하여 begin에서 target으로 변환하는 가장 짧은 변환 과정을 찾으려고 합니다. 1. 한 번에 한 개의 알파벳만 바꿀 수 있습니다. 2. words에 있는 단어로만 변환할 수 있습니다. 예를 들어 begin이 "hit", target..
What: 트랜잭션 (Transaction) 모든 구문이 성공 OR 모든 구문이 실패 어떤 구문은 성공하고 어떤 구문은 실패하면 안될때 트랜잭션을 사용 원자성 (Atomicity) 은행 송금 예시 A가 B 돈을 보냄: A 계좌에서 돈이 출금 B 계좌에서 돈이 입금 만약, "A 계좌에서 돈이 출금"라는 SQL 구문만 실행되고, 오류가 발생하여 "B 계좌에서 돈이 입금" SQL 구문이 실행되지 않으면 서비스를 복구하는데 막대한 비용이 듬! 만약 위의 두 SQL 구문이 모두 성공하거나 실패하게 만들면 위와 같은 문제가 없음! → 이때 트랜잭션을 사용함 -- 트랜잭션 시작 START TRANSACTION; DELETE FROM sections WHERE section_id > 0; SELECT *FROM sec..
Problem. Search - Ice Cream Parlor Link. https://www.hackerrank.com/challenges/icecream-parlor/problem?isFullScreen=true Ice Cream Parlor | HackerRank Help Sunny and Johnny spend all their money during each trip to the Ice Cream Parlor. www.hackerrank.com Description. Two friends like to pool their money and go to the ice cream parlor. They always choose two distinct flavors and they spend all o..
Problem. Sorting - Big Sorting Link. https://www.hackerrank.com/challenges/big-sorting/problem?isFullScreen=true Big Sorting | HackerRank Sort an array of very long numeric strings. www.hackerrank.com Description. Consider an array of numeric strings where each string is a positive number with anywhere from 1 to 10^6 digits. Sort the array's elements in non-decreasing, or ascending order of thei..
What: 인덱스 특정 컬럼(들)에 대한 목차 생성 - 검색 가속화 테이블 내용변경(추가, 수정, 삭제)시 시간 더 소모 기본키(PRIMARY KEY)는 기본적으로 인덱스가 걸려있음 → 따라서 PRIMARY KEY를 기준으로 데이터 검색은 빠름! -- 인덱스 생성 ALTER TABLE (테이블명) ADD INDEX (인덱스명) (인덱스를 적용시킬 컬럼명) ex) ALTER TABLE `mydatabase`.`businesses` ADD INDEX index_biz_name (business_name); -- 다중 컬럼 인덱스 ALTER TABLE menus ADD INDEX index_name_cal (menu_name, kilocalories); -- 인덱스 조회 SHOW INDEX FROM busin..
Problem. Implementation - Equalize the Array Link. https://www.hackerrank.com/challenges/equality-in-a-array/problem?isFullScreen=true Equalize the Array | HackerRank Delete a minimal number of elements from an array so that all elements of the modified array are equal to one another. www.hackerrank.com Description. Given an array of integers, determine the minimum number of elements to delete t..
Problem. Strings - CamelCase Link. https://www.hackerrank.com/challenges/camelcase/problem?isFullScreen=true CamelCase | HackerRank www.hackerrank.com Description. There is a sequence of words in CamelCase as a string of letters, s, having the following properties: It is a concatenation of one or more words consisting of English letters. All letters in the first word are lowercase. For each of t..