예전에 면접볼 때 질문을 너무 못했던 바로 그 주제… ㅠㅠ.. 면접보고나서 바로 플젝 회의할때 그 주제가 나와서 땅을 치고 후회했드랩죠… 그래도 머 킵고잉해야하니까 용기내서 간단하게 정리해봅니당 그때 면접때 MSA 아키텍쳐 이야기를 많이 하면서 서버 여러대로 scael out 된 상황을 가정했었다. 그리고 jwt 통해서 로그인 기능 구현하는 이야...
leetcode 풀이 저장소 안내
더이상 릿코드 풀이를 쓰는건 무의미할 거 같당. 내 릿코드 풀이 저장소는 여기 입니당. 주석도 써놓았으니 해버룩~~~~
DB-인덱스에 대하여, clustered index nonclustered index
DB 공부하다가 남기는 기록. 쿼리를 빠르게 돌리기 위해서 인덱스, 쿼리 힌트 사용하기가 있는데 정확히 그게 뭐고 어떻게 사용하는지 정리 1. 인덱스란? 데이터베이스 테이블의 검색 속도를 향상시키기 위한 자료구조이다. 테이블 안의 데이터가 많다면 풀스캔을 해서 조회하면 시간이 너무 많이 걸림. 2. 인덱스의 내부 구조 B-Tree (balance...
leetcode 풀이 - move zeros
문제 Given an integer array nums, move all 0’s to the end of it while maintaining the relative order of the non-zero elements. Note that you must do this in-place without making a copy of the array....
leetcode 풀이 - plus one
문제 You are given a large integer represented as an integer array digits, where each digits[i] is the ith digit of the integer. The digits are ordered from most significant to least significant in l...
leetcode 풀이 - intersection of two arrays 2
문제 Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as it shows in both arrays and you may return the result in ...
leetcode 풀이 - Single number
문제 Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear runtime complexity and use only constant ...
Bit operation
알고리즘 문제 풀다가 공부한 bit operation 정리 1. Bit operation 비트 단위의 연산에 대해서 공부하기 위해서는 우선 비트가 뭔지 알아야한다. Bit 란? 컴퓨터에서 0 혹은 1의 binary digit을 저장하는 가장 작은 단위의 데이터이다. 너무 작은 단위이기에 하나의 bit 씩 사용되기 보단 byte처럼 bit 의 ...
leetcode 풀이 - Contains Duplicate
문제 Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct. Example 1: Input: nums = [1,2,3,1] Output: true Examp...
leetcode 풀이 - Rotate Array
문제 Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4] Explanation: rotate 1 steps to the r...