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 | 31 |
Tags
- Cross Entropy Error
- fp32
- gemma3
- 딥러닝
- rag-fusion
- Nested Learning
- 활성화 함수
- visual instruction tuning
- bf16
- Mean squared error
- LLM 패러다임
- rrf
- 활성화함수
- multi-query
- fp16
- Non-Maximum Suppression
- 이상탐지
- 데이터 파싱
- deep learning
- 합성곱 신경망
- LLM
- qlora
- pdf parsing
- fine tuning
- LLaVA
- anomaly detection
- rag parsing
- 파인튜닝
- Time Series
- 오차역전파
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 |