일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 알고리즘
- GenAI
- 투포인터
- 파이썬기초
- LeetCode
- TwoPointer
- Python
- GenerativeAI
- Blazor
- 릿코드
- 리트코드
- 머신러닝
- 빅데이터
- 생성형AI
- 파이썬
- codeup
- 데이터사이언스
- gcp
- 클라우드
- Azure
- 파이썬알고리즘
- C#
- 코드업
- nlp
- 자연어처리
- Python3
- 파이썬기초100제
- 코드업파이썬
- Microsoft
- 구글퀵랩
- Today
- Total
목록IT (93)
Tech for good
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/3PFrr/btsMjEQVmqE/2aUURDK1gniikXFiQ9KJWK/img.png)
이 문제를 한 번의 순회(One-pass)로 해결하는 방법은 두 개의 포인터(first, second)를 사용하는 것이다.first 포인터를 먼저 n칸 이동시킨 후, second 포인터를 first와 함께 이동하면 first가 끝에 도달했을 때 second는 삭제할 노드의 직전 노드를 가리키게 된다.✅ 알고리즘 풀이 (Two Pointer)더미 노드 추가: 삭제할 노드가 head일 수도 있으므로 더미 노드를 추가.first 포인터 선행 이동: first를 n칸 먼저 이동.두 포인터 이동: first가 리스트의 끝에 도달할 때까지 second와 함께 이동.노드 삭제: second.next를 second.next.next로 변경하여 노드 삭제.새로운 head 반환: dummy.next를 반환.# Defini..
해시셋(Hash Set) 활용 -중복을 방지하면서 각 노드를 탐색할 때 (k - 현재 노드 값)이 존재하는지 확인하는 방법. 설명dfs 함수를 사용하여 트리를 깊이 우선 탐색(DFS) 한다.각 노드를 방문할 때 k - node.val이 seen 집합에 존재하는지 확인한다.존재하면 True를 반환하고, 없으면 현재 노드 값을 seen에 추가한 후 왼쪽과 오른쪽 서브트리를 탐색한다.전체 탐색이 끝날 때까지 조건을 만족하는 쌍이 없으면 False를 반환한다.시간 복잡도각 노드를 한 번씩 방문하므로 O(N) (N은 트리의 노드 개수).공간 복잡도최악의 경우 모든 노드 값을 seen에 저장해야 하므로 O(N). # Definition for a binary tree node.class TreeNode: de..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/3aFve/btsMiZ2rP8O/ppvVWIx8mH3fYKybndAUXK/img.png)
Two Pointer 방식으로 해결하는 방법Two Pointer 방식을 사용하려면, BST(Binary Search Tree)의 중위 순회(in-order traversal)를 수행하여 오름차순으로 정렬된 리스트를 만든 후, 투 포인터를 사용하여 두 숫자의 합이 k가 되는지 확인하면 된다.Two Pointer 알고리즘BST를 중위 순회하여 정렬된 리스트를 생성중위 순회(In-order Traversal)를 수행하면 BST의 값이 오름차순으로 정렬됨.Two Pointer 기법을 활용하여 합이 k가 되는 두 수 찾기리스트의 left(처음)과 right(끝) 포인터를 설정.두 값의 합이 k보다 작으면 left를 증가.두 값의 합이 k보다 크면 right를 감소.두 값의 합이 k이면 True 반환.# Defin..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/FFGRE/btsHXlOk8Fm/ov9wCbSrgg4wU0j0o49ls0/img.png)
01. Use Gemini to generate written content 02. Use Gemini to refine written content 03. Proofread your document for spelling, grammar, style, and word choice by using Gemini
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/Jqk66/btsHWAS1mRr/aoK9kBNEXMG9LSPf9gjjiK/img.png)
01. Use Gemini in Gamil to write a message Consider asking Gemini to email employees highlighting the latest software updates that IT team launched. 02. Use Gemini in Gamil to refine a messageTo change the tone of your message to be more appropriate for a business context, select Formalize.If you want to make the text longer, select Elaborate.If the text is already too long, select Shorten, to..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/oWUY8/btsHWRNNlEJ/AAFg9DQHoFs8dYqq5xswok/img.png)
01. Define generative AI Generative AI does not change our foundational privacy protections for giving users choice and control over their data. 02. Outline the main Gemini featuresMarketingTo draft creative and engaging content for marketing materials based on the audience.To organize and act on data faster to spot customer trends.To generate compelling visuals to improve marketing presentatio..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/kVo2Y/btswgXRKZI2/3n7vtPZLGQnMRiAVjihCA1/img.png)
https://www.youtube.com/playlist?list=PLIivdWyY5sqIlLF9JHbyiqzZbib9pFt4x Generative AI Learning Path https://goo.gle/LearnGenAI www.youtube.com Introduction 1. Pass images to encoder 2. Extract information from the images 3. Create some feature vectors 4. Vectors are passed to the decoder 5. Build captions by generating words, one by one. Decoder It gets words one by one and makes the informatio..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/GAs6n/btstw1Q1ulQ/eQovukEJkygjxP1kA1co40/img.png)
https://www.youtube.com/playlist?list=PLIivdWyY5sqIlLF9JHbyiqzZbib9pFt4x Generative AI Learning Path https://goo.gle/LearnGenAI www.youtube.com If you are an app developer or data scientist and want to build an application, you can use Generative AI Studio to quickly prototype and customize generative AI models with no code or low code. If you are a data scientist or ML developer who wants to bu..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/SkAWZ/btstxjRkuSt/0hM86nHyrZWgSqd4WaQ1FK/img.png)
https://www.youtube.com/playlist?list=PLIivdWyY5sqIlLF9JHbyiqzZbib9pFt4x Generative AI Learning Path https://goo.gle/LearnGenAI www.youtube.com RNN/LSTM -> Sequence-to-sequence model i.e. Translation, Text classification Although all the models before Transformers were able to represent words as vectors, these vectors did not contain the context. And the usage of words changes based on the conte..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/v7sP0/btstxlVUqwg/nThDAkVl360bKCfbHkCyn1/img.png)
https://www.youtube.com/playlist?list=PLIivdWyY5sqIlLF9JHbyiqzZbib9pFt4x Generative AI Learning Path https://goo.gle/LearnGenAI www.youtube.com Attention mechanism is behind all the transformer models and which is core to the LLM models. Encoder-Decoder is a popular model that is used to translate sentences. The encoder-decoder takes one word at a time and translates it at each time step. Howeve..