Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Cross Entropy Error
- 데이터 파싱
- segmentation
- Time Series
- multi-query
- E
- 활성화함수
- Mean squared error
- LLaVA
- rrf
- computer vision
- 시계열
- LLM
- 합성곱 신경망
- 컴퓨터비전
- rag-fusion
- leetcode
- 활성화 함수
- rag parsing
- nlp
- 퍼셉트론
- deep learning
- visual instruction tuning
- 딥러닝
- anomaly detection
- 오차역전파
- 이상탐지
- pdf parsing
- 손실함수
- Non-Maximum Suppression
Archives
- Today
- Total
목록leetcode (1)
굴러가는 분석가의 일상
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/xY9C4/btsyNsWxwdo/01D5TRWb2qV5I7n63Vjzk1/img.png)
문제 풀이 Brute Force 방식과는 달리 HashMap를 사용하게 된다면, 한번의 Iteration으로 결과 값 도출이 가능합니다. nums = [2,1,5,3] 배열과 target = 4 값이 주어졌다고 가정해보겠습니다. Value Index Difference Hashmap 2 0 4 - 2 = 2 (2,0) 1 1 4 - 1 = 3 (1,1) 5 2 4 - 5 = -1 (5,2) 처음으로 Target 값에서 각 배열의 element 차이를 구합니다. 이를 통해 도출되는 Difference 값이 중복되지 않았다면 Hashmap에 포함시켜주고, 중복 되어있다면 포함시키지 않습니다. Class Solution: def twoSum(self, nums: List[int], target: int) ->..
Algorithm/Leetcode
2023. 10. 20. 09:07