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 | 29 | 30 |
Tags
- 데이터 파싱
- multi-query
- leetcode
- qlora
- 파인튜닝
- rrf
- 시계열
- rag-fusion
- 합성곱 신경망
- 손실함수
- 딥러닝
- Cross Entropy Error
- anomaly detection
- LLaVA
- 퍼셉트론
- Non-Maximum Suppression
- 오차역전파
- 활성화 함수
- gemma3
- deep learning
- visual instruction tuning
- Mean squared error
- LLM
- nlp
- fine tuning
- 이상탐지
- 활성화함수
- Time Series
- pdf parsing
- rag parsing
Archives
- Today
- Total
Attention, Please!!!
[LeetCode] Product of Array Except Self 본문
문제:

풀이 :
class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
solution = [1] * (range(len(nums))
for i in range(len(nums)):
solution[i] = solution[i-1] * nums[i-1]
postfix = 1
for i in range(len(nums)-1, -1,-1)):
solution[i] *= postfix
postfix *= nums[i]
return solution
'Algorithm > Leetcode' 카테고리의 다른 글
[LeetCode] Valid Anagram (0) | 2024.02.16 |
---|---|
[LeetCode] SQL 50문제 (진행중) (0) | 2023.10.24 |
[LeetCode] Two Sum (0) | 2023.10.20 |
[LeetCode] Valid Sudoku (0) | 2023.10.12 |
[LeetCode] Contains Duplicate (0) | 2023.10.10 |