/coding-test-study

๐Ÿ“ BOJ์™€ LeetCode์œผ๋กœ ์ค€๋น„ํ•˜๋Š” ์ฝ”๋”ฉํ…Œ์ŠคํŠธ

Primary LanguagePython

๐Ÿ‘จโ€๐Ÿ’ปCoding Test Study๐Ÿ‘ฉโ€๐Ÿ’ป

logo
stars open pull requests

๋ฐฑ์ค€ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์Šคํ„ฐ๋”” ๋•Œ์˜ README๋Š” ์—ฌ๊ธฐ๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”!


๐Ÿ‘‹ ํŒ€์› ์†Œ๊ฐœ


ํŽญ๊ท„

์ƒ๋ฆฌ

ํ›„๋ฏธ

ํŠœ๋ธŒ

์„œํฟ
:octocat: GitHub
๐Ÿ“ ํ‘ผ ๋ฌธ์ œ๋“ค
:octocat: GitHub
๐Ÿ“ ํ‘ผ ๋ฌธ์ œ๋“ค
:octocat: GitHub
๐Ÿ“ ํ‘ผ ๋ฌธ์ œ๋“ค
:octocat: GitHub
๐Ÿ“ ํ‘ผ ๋ฌธ์ œ๋“ค
:octocat: GitHub
๐Ÿ“ ํ‘ผ ๋ฌธ์ œ๋“ค
๐ŸŽ“ ์ด์ „ ํŒ€์›

์›๋”œ

๊ตฌ๋„ˆ

๊ฐ์ž
:octocat: GitHub
๐Ÿ“ ํ‘ผ ๋ฌธ์ œ๋“ค
:octocat: GitHub
๐Ÿ“ ํ‘ผ ๋ฌธ์ œ๋“ค
:octocat: GitHub
๐Ÿ“ ํ‘ผ ๋ฌธ์ œ๋“ค

โœ’ ์Šคํ„ฐ๋”” ๋ฐฉ์‹

  • ๋งค์ฃผ ์ผ์š”์ผ๊นŒ์ง€ New Year Gift - Curated List of Top 75 LeetCode Questions to Save Your Time์—์„œ ์„ ์ •ํ•œ ๋ฌธ์ œ๋ฅผ ํ‘ผ๋‹ค.
  • ์ž์‹ ์˜ ๋‹‰๋„ค์ž„์œผ๋กœ ๋œ ๋ธŒ๋žœ์น˜์— ํ‘ผ ๋ฌธ์ œ์˜ ์ฝ”๋“œ๋ฅผ Commitํ•˜๊ณ  Pull Request๋ฅผ ๋ณด๋‚ธ๋‹ค.
    • Pull Request์—๋Š” ๋ฌธ์ œ ๋งํฌ, ๊ฐ„๋‹จํ•œ ํ’€์ด ๋ฐฉ์‹, ๊ถ๊ธˆํ•œ ์‚ฌํ•ญ์„ ์ ๋Š”๋‹ค.
    • ์ œ๋Œ€๋กœ ์ œ์ถœํ–ˆ๋‹ค๋ฉด ๋‚˜๋จธ์ง€ ํŒ€์›๋“ค์ด ํ™•์ธํ•˜๊ณ  ์Šน์ธ์„ ํ•œ๋‹ค. ๋งŒ์•ฝ Pull Request ์–‘์‹์„ ์ง€ํ‚ค์ง€ ์•Š์„ ์‹œ ๊ฑฐ์ ˆํ•œ๋‹ค.
    • Pull Request์— ์งˆ๋ฌธ์ด ์žˆ๋‹ค๋ฉด ํ•ด๋‹น ๋‚ด์šฉ์— ๋Œ€ํ•œ ๋‹ต๋ณ€์„ ์ž‘์„ฑํ•œ๋‹ค. ์—ญ์œผ๋กœ ์งˆ๋ฌธํ•˜๋Š” ๊ฒƒ๋„ ๊ฐ€๋Šฅํ•˜๋‹ค.
  • ๊ณต๋ถ€๋ฅผ ํ•˜๋ฉด์„œ ์ƒˆ๋กœ ๋ฐฐ์šด ๊ฐœ๋…, ์ข‹์€ ๊ฟ€ํŒ์€ Issue์— ๊ณต์œ ํ•œ๋‹ค.
  • Pull Request ์ œ์ถœ ๋งˆ๊ฐ์€ ํ•ด๊ฐ€ ๋œจ๊ธฐ ์ „๊นŒ์ง€์ด๋ฉฐ, ์ œ์ถœํ•˜์ง€ ๋ชปํ•  ์‹œ 5000์›์˜ ๋ฒŒ๊ธˆ์„ ๋ถ€๊ณผํ•œ๋‹ค.

๐Ÿ“Œ ์ด์šฉ ๊ทœ์น™

Naming

๊ทธ ๋™์•ˆ ํ‘ผ ๋ฐฑ์ค€ ๋ฌธ์ œ๋“ค์€ boj ํด๋” ์•ˆ์— ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.

  • ํด๋”๋Š” ์ž์‹ ์˜ ๋‹‰๋„ค์ž„์œผ๋กœ๋œ ํด๋”๋งŒ ์ด์šฉํ•ฉ๋‹ˆ๋‹ค.
  • ์„œ๋ธŒ ํด๋” leetcode ์•ˆ์— ๋ฌธ์ œ ํŒŒ์ผ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  • ์„œ๋ธŒ ํด๋” ์•ˆ์— ํ‘ผ ๋ฌธ์ œ์˜ ์ด๋ฆ„์€ ๋ฌธ์ œ๋ฒˆํ˜ธ_๋ฌธ์ œ์ œ๋ชฉ.py, ๋ฌธ์ œ๋ฒˆํ˜ธ_๋ฌธ์ œ์ œ๋ชฉ.cpp๋กœ ํ†ต์ผํ•ฉ๋‹ˆ๋‹ค. ๋„์–ด์“ฐ๊ธฐ๋Š” _๋กœ ๋‚˜๋ˆ„๊ณ  CamelCase๋กœ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.
    • ex. 1. Two Sum โ†’ 1_Two_Sum.py
    • ex. 26. Remove Duplicates from Sorted Array โ†’ 26_Remove_Duplicates_From_Sorted_Array.py
  • ์ž์‹ ์˜ ํด๋” ๋‚ด README๋Š” ์ž์œ ๋กญ๊ฒŒ ์ž‘์„ฑํ•˜์…”๋„ ๋ฉ๋‹ˆ๋‹ค.

Pull Request

  • Pull Request ์ œ๋ชฉ์€ [๋‹‰๋„ค์ž„] ๋‚ ์งœ๋กœ ํ•ด์ฃผ์„ธ์š”!
    • 5์›” 10์ผ ํŽญ๊ท„ โ†’ [ํŽญ๊ท„] 2021.05.10
  • ์ž์‹ ์˜ ๋‹‰๋„ค์ž„๊ณผ ๋‚ ์งœ๋กœ ๋œ ๋ธŒ๋žœ์น˜๋ฅผ ๋”ด ํ›„ ์ž์‹ ์˜ ๋‹‰๋„ค์ž„ ํด๋”์— ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•œ ํ›„ Pull Request๋ฅผ ๋ณด๋ƒ…๋‹ˆ๋‹ค.
    • 5์›” 10์ผ ๋ฌธ์ œ + ํŽญ๊ท„ โ†’ penguin-0510
  • Pull Request ์–‘์‹์— ๋”ฐ๋ผ ์ž‘์„ฑํ•ด์•ผ ํ•˜๋ฉฐ, ์ œ๋Œ€๋กœ ์ž‘์„ฑํ•˜์ง€ ์•Š์„ ์‹œ ์Šน์ธ์ด ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Issue

  • ๋ฌธ์ œ๋ฅผ ํ’€๋ฉด์„œ ์ƒˆ๋กœ ๋ฐฐ์šด ๊ฐœ๋…์„ ๊ฐ„๋‹จํžˆ ์ •๋ฆฌํ•˜๊ฑฐ๋‚˜ ๋ฌธ์ œ ํ’€์ด ์‹œ ๊ฟ€ํŒ์„ ๊ณต์œ ํ•˜๋Š” ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค.
  • ๋ฉ”์ธ ํƒœ๊ทธ๋กœ๋Š” concept๊ณผ tips๊ฐ€ ์žˆ์œผ๋ฉฐ, concept์€ ๊ฐœ๋… ์ •๋ฆฌ, tips๋Š” ๊ฟ€ํŒ์„ ๊ณต์œ ํ•  ๋•Œ ๋‹ค๋Š” ํƒœ๊ทธ์ž…๋‹ˆ๋‹ค.
  • ์„œ๋ธŒ ํƒœ๊ทธ๋Š” ์ž์œ ๋กญ๊ฒŒ ๋ถ™์—ฌ์ฃผ์‹œ๋˜ ์ƒ‰๊น”์€ #efefef๋กœ ์„ค์ •ํ•˜๊ณ  ๋ชจ๋‘ ์˜์–ด๋กœ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.
    • ๋ฏธ๋ฆฌ ๋ช‡ ๊ฐœ์˜ ์„œ๋ธŒ ํƒœ๊ทธ๋ฅผ ๋งŒ๋“ค์–ด ๋†“์•˜์œผ๋‹ˆ ์„œ๋ธŒ ํƒœ๊ทธ์— ์—†๋‹ค๋ฉด ์ง์ ‘ ๋งŒ๋“ค์–ด์ฃผ์„ธ์š”.

๐Ÿ“ ์Šคํ„ฐ๋”” ์ผ์ง€

week1 (2021.09.13 ~ 2021.09.19)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
1 Two Sum Array Easy
121 Best Time to Buy and Sell Stock Array Easy
217 Contains Duplicate Array Easy
238 Product of Array Except Self Array Easy
week2 (2021.09.20 ~ 2021.09.26)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
338 Counting Bits Binary Easy
1143 Longest Common Subsequence Dynamic Programming Medium
week3 (2021.09.27 ~ 2021.10.03)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
20 Valid Parentheses String Easy
128 Longest Consecutive Sequence Graph Medium
55 Jump Game Dynamic Programming Medium
39 Combination Sum Dynamic Programming Medium
week4 (2021.10.04 ~ 2021.10.10)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
190 Reverse Bits Binary Easy
98 Validate Binary Search Tree Tree Medium
143 Reorder List Linked List Medium
79 Word Search Matrix Medium
week5 (2021.10.11 ~ 2021.10.17)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
242 Valid Anagram String Easy
435 Non-overlapping Intervals Interval Medium
207 Course Schedule Graph Medium
139 Word Break Problem Dynamic Programming Medium
week6 (2021.10.18 ~ 2021.10.24)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
15 3Sum Array Medium
19 Remove Nth Node From End Of List Linked List Medium
200 Number of Islands Graph Medium
week7 (2021.10.25 ~ 2021.10.31)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
235 Lowest Common Ancestor of BST Tree Easy
347 Top K Frequent Elements Heap Medium
62 Unique Paths Dynamic Programming Medium
5 Longest Palindromic Substring String Medium
week8 (2021.11.01 ~ 2021.11.07)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
21 Merge Two Sorted Lists Linked List Easy
322 Coin Change Dynamic Programming Medium
102 Binary Tree Level Order Traversal Tree Medium
230 Kth Smallest Element in a BST Tree Medium
week9 (2021.11.08 ~ 2021.11.14)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
226 Invert/Flip Binary Tree Tree Easy
647 Palindromic Substrings String Medium
105 Construct Binary Tree from Preorder and Inorder Traversal Tree Medium
91 Decode Ways Dynamic Programming Medium
week10 (2021.11.15 ~ 2021.11.21)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
104 Maximum Depth of Binary Tree Tree Easy
208 Implement Trie (Prefix Tree) Tree Medium
424 Longest Repeating Character Replacement String Medium
206 Reverse a Linked List Linked List Medium
week11 (2021.11.22 ~ 2021.11.28)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
268 Missing Number Binary Easy
211 Add and Search Word Tree Medium
57 Insert Interval Interval Medium
23 Merge K Sorted Lists Heap Hard
week12 (2021.11.29 ~ 2021.12.05)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
100 Same Tree Tree Easy
48 Rotate Image Matrix Medium
76 Minimum Window Substring String Hard
week13 (2021.12.06 ~ 2021.12.12)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
125 Valid Palindrome String Easy
133 Clone Graph Graph Medium
49 Group Anagrams String Medium
124 Binary Tree Maximum Path Sum Tree Hard
week14 (2021.12.13 ~ 2021.12.19)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
191 Number of 1 Bits Binary Easy
417 Pacific Atlantic Water Flow Graph Medium
11 Container With Most Water Array Medium
23 Merge K Sorted Lists Linked List Hard
week15 (2021.12.20 ~ 2021.12.26)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
70 Climbing Stairs Dynamic Programming Easy
54 Spiral Matrix Matrix Medium
3 Longest Substring Without Repeating Characters String Medium
295 Find Median from Data Stream Heap Hard
week16 (2021.12.27 ~ 2022.01.02)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
572 Subtree of Another Tree Tree Easy
141 Detect Cycle in a Linked List Linked List Medium
213 House Robber II Dynamic Programming Medium
week17 (2021.01.03 ~ 2021.01.09)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
73 Set Matrix Zeroes Matrix Medium
198 House Robber Dynamic Programming Medium
300 Longest Increasing Subsequence Dynamic Programming Medium
212 Word Search II Tree Hard
week18 (2021.01.10 ~ 2021.01.16)
๋ฌธ์ œ๋ฒˆํ˜ธ ๋ฌธ์ œ์ด๋ฆ„ ๋ฌธ์ œ์œ ํ˜• ๋‚œ์ด๋„
56 Merge Intervals Interval Medium
371 Sum of Two Integers Binary Medium
297 Serialize and Deserialize Binary Tree Tree Hard