Skip to content

leetCode 3sum (혜안)#107

Open
hean1103 wants to merge 2 commits intomacgorithm:mainfrom
hean1103:main
Open

leetCode 3sum (혜안)#107
hean1103 wants to merge 2 commits intomacgorithm:mainfrom
hean1103:main

Conversation

@hean1103
Copy link
Contributor

@hean1103 hean1103 commented Oct 3, 2022

📕 Problem

leetcode_3Sum

📗 Idea & Algorithm

투 포인터를 사용해 합을 계산하며 풀었습니다.

📘 Comment

List<List<>> 타입은 처음이라 변환하는데 힘들었어요 🥲
DFS로 처음에 풀었는데 시간초과나서 구글링 후에 투 포인터를 사용했습니당.

투 포인터가 더 비효울적이라 생각했는데 아닌가봐요 !

📕 Problem

프로그래머스_후보키

📗 Idea & Algorithm

비트마스킹과 SET자료형을 사용해 풀었습니다.

📘 Comment

빡코딩으로 구현하다가 중복 유무를 비트마스킹으로 했던게 기억나서 도전했습니다.

비트마스킹을 사용하려고 끙끙거리느라 예상 풀이시간 + 1시간은 된것같지만 세상 뿌듯하네용 ㅎㅎ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants