이 글은 강의 내용을 토대로 작성하였습니다.
일관성 (Consistency)
= Write 이후 Read 시 바로 값을 조회할 수 있느냐?
가용성 (Availability)
= 단일 고장 점(single point of failure, SPOF)이 존재하는가?
분할 허용성 (Partition Tolerance)
= 수평 스케일링이 쉽게 가능한가?
Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the range [1, n] that do not appear in nums.
Follow up: Could you do it without extra space and in O(n) runtime? You may assume the returned list does not count as extra space.
Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or equal to target. If there is no such subarray, return 0 instead.
Given a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible.
You can use each character in text at most once. Return the maximum number of instances that can be formed.
Given a sorted integer array arr, two integers k and x, return the k closest integers to x in the array. The result should also be sorted in ascending order.
An integer a is closer to x than an integer b if:
|a - x| < |b - x|, or
|a - x| == |b - x| and a < b