/leetcode

My Leetcode solutions in pure C and Python

Primary LanguageC++

leetcode

Leetcode solutions in C or Python. 使用C和Python完成leetcode题目

# Title Solution Difficulty
1 Two Sum C Easy
2 AddTwoNumbers C Medium
3 Longest Substring Without Repeating Characters C Medium
4 Median of Two Sorted Arrays C Hard
5 Longest Palindromic Substring C Medium
6 ZigZag Conversion C Easy
7 Reverse Integer C Easy
8 String to Integer (atoi) C Medium
9 is Palindrome C Easy
11 container with most water C Medium
12 Integer to Roman C Medium
13 Roman to Integer C Easy
14 Longest Common Prefix C Easy
15 3Sum C Medium
16 3Sum Closest C Medium
17 Letter Combinations of a Phone Number C Medium
18 4Sum C Medium
19 Remove Nth Node From End of List C Medium
20 Valid Parentheses C Easy
21 Merge Two Sorted Lists C Easy
22 Generate Parentheses C Medium
23 Merge k Sorted Lists C Hard
24 Swap Nodes in Pairs C Medium
25 Reverse Nodes in k-Group C Hard
26 Remove Duplicates from Sorted Array C Easy
27 Remove Element C Easy
28 Implement strStr() C Easy
29 Divide Two Integers C Medium
30 Substring with Concatenation of All Words C Hard
31 Next Permutation C Medium
32 Longest Valid Parentheses C Hard
33 Search in Rotated Sorted Array C Medium
34 Find First and Last Position of Element in Sorted Array C Medium
35 Search Insert Position C Easy
36 valid sudoku C Medium
37 Sudoku Solver C Hard
38 Count and Say C Easy
39 Combination Sum C Medium
40 Combination Sum II C Medium
41 First Missing Positive C Hard
42 Trapping Rain Water C Hard
43 Multiply Strings C Medium
45 Jump Game II C Hard
46 permutations C Medium
47 Permutations II C Medium
48 Rotate Image C Medium
49 Group Anagrams C Passed 98/101 :( Medium
50 Pow(x, n) C Medium
51 n-queens C Hard
52 n-queens-ii C Hard
53 maximum-subarray C Easy
54 spiral-matrix C Medium
55 jump-game C Medium
56 merge-intervals C Medium
57 merge-intervals Python Medium
997 Find the Town Judge C Easy