노트(211)
-
[Foundation of Data science] 추론 통계
목차 : 이항 분포 (Binomial Distribution) 연속 Uniform 분포 (Continuous Uniform Distribution) 정규 분포 (Normal Distribution) 중심 극한 정리 (Central Limit Theorem (CLT)) 점 추정 (Point estimation) 신뢰 구간 (Confidence Interval) 이항 분포 (Binomial Distribution) 문제 설명 Lavista 박물관의 방문객중 80%는 박물관 내의 기념품 점에서 결국 기념품을 구매합니다. 다음주 일요일날, 임의의 10명의 표본이 선택되었습니다. : 모든 사람들이 기념품 점에서 결국 기념품을 구매할 확률을 구하세요. 최대 7명의 방문객들이 기념품 점에서 기념품을 구매할 확률을 구..
2022.12.10 -
[leetcode] 771. Jewels and Stones
You're given strings jewels representing the types of stones that are jewels, and stones representing the stones you have. Each character in stones is a type of stone you have. You want to know how many of the stones you have are also jewels. Letters are case sensitive, so "a" is considered a different type of stone from "A". Example 1: Input: jewels = "aA", stones = "aAAbbbb" Output: 3 Example ..
2022.12.09 -
[leetcode] 706. Design HashMap
Design a HashMap without using any built-in hash table libraries. Implement the MyHashMap class: MyHashMap() initializes the object with an empty map. void put(int key, int value) inserts a (key, value) pair into the HashMap. If the key already exists in the map, update the corresponding value. int get(int key) returns the value to which the specified key is mapped, or -1 if this map contains no..
2022.12.08 -
[leetcode] 23. Merge k Sorted Lists
You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it. Example 1: Input: lists = [[1,4,5],[1,3,4],[2,6]] Output: [1,1,2,3,4,4,5,6] Explanation: The linked-lists are: [ 1->4->5, 1->3->4, 2->6 ] merging them into one sorted list: 1->1->2->3->4->4->5->6 Example 2: Input: lists = [] Output: ..
2022.12.06 -
[leetcode] 641. Design Circular Deque
Design your implementation of the circular double-ended queue (deque). Implement the MyC ircularDeque class: MyCircularDeque(int k) Initializes the deque with a maximum size of k. boolean insertFront() Adds an item at the front of Deque. Returns true if the operation is successful, or false otherwise. boolean insertLast() Adds an item at the rear of Deque. Returns true if the operation is succes..
2022.12.06 -
[leetcode] 622. Design Circular Queue
Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle, and the last position is connected back to the first position to make a circle. It is also called "Ring Buffer". One of the benefits of the circular queue is that we can make use of the spaces in front of the queue. In..
2022.12.01