Skip to content

lee00286/LeetCode-by-Swift-Python-C-SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

Table of Contents


LeetCode by JavaScript

Array

# Title Solution Difficulty Runtime Memory Usage
1 Two Sum JavaSrcript Easy 112 ms (41.45%) 39.4 MB (81.97%)

LeetCode by Swift

Array

# Title Solution Difficulty Runtime Memory Usage
1 Two Sum Swift Easy 36 ms (69.84%) 21.3 MB (44.99%)
485 Max Consecutive Ones Swift Easy 288 ms (71.75%) 21.3 MB (35.37%)

Math

# Title Solution Difficulty Runtime Memory Usage
7 Reverse Integer Swift Easy 8 ms (88.91%) 20.7 MB (59.07%)
9 Palindrome Number Swift Easy 24 ms (100.00%) 21.2 MB (40.85%)
263 Ugly Number Swift Easy 8 ms (76.19%) 20.4 MB (100.00%)
292 Nim Game Swift Easy 4 ms (88.71%) 20.9 MB (35.11%)
326 Power of Three Swift Easy 80 ms (30.34%) 21 MB (92.11%)
367 Valid Perfect Square Swift Easy 8 ms (60.71%) 20.8 MB (25.00%)
1009 Complement of Base 10 Integer Swift Easy 4 ms (96.83%) 20.8 MB (28.578%)
1351 Count Negative Numbers in a Sorted Matrix Swift Easy 160 ms (61.24%) 20.9 MB (75.97%)

Matrix

# Title Solution Difficulty Runtime Memory Usage
542 01 Matrix Swift Medium 536 ms (93.94%) 22.1 MB (100.00%)
556 Reshape the Matrix Swift Easy 124 ms (64.10%) 21.2 MB (100.00%)
766 Toeplitz Matrix Swift Easy 72 ms (95.83%) 20.7 MB (87.50%)

String

# Title Solution Difficulty Runtime Memory Usage
3 Longest Substring Without Repeating Characters Swift Medium 52 ms (73.94%) 20.9 MB (85.38%)
38 Count and Say Swift Easy 12 ms (75.27%) 20.6 MB (79.57%)
551 Student Attendance Record I Swift Easy 4 ms (89.13%) 21.8 MB (10.64%)

LeetCode by Python

Array

# Title Solution Difficulty Runtime Memory Usage
1 Two Sum Python Easy 28 ms (98.70%) 14.1 MB (30.66%)
4 Median of Two Sorted Arrays Python Hard 92 ms (69.12%) 14.5 MB (78.46%)
27 Remove Element Python Easy 32 ms (77.71%) 14.2 MB (75.91%)
36 Valid Sudoku Python Medium 76 ms (91.19%) 12.9 MB (25.58%)
41 First Missing Positive Python Hard ms (%) MB (%)
66 Plus One Python Easy ms (%) MB (%)
135 Candy Python Easy 156 ms (84.83%) 16.8 MB (45.52%)
167 Two Sum II - Input array is sorted Python Easy 44 ms (93.95%) 13.4 MB (8.96%)
268 Missing Number Python Easy 120 ms (62.09%) 13.7 MB (68.94%)
349 Intersection of Two Arrays Python Easy 84 ms (12.03%) 14.1 MB (22.81%)
401 Binary Watch Python Easy 20 ms (71.98%) 12.8 MB (44.58%)
485 Max Consecutive Ones Python Easy 320 ms (87.26%) 12.9 MB (88.49%)
500 Keyboard Row Python Easy 20 ms (97.99%) 13.8 MB (50.68%)
871 Minimum Number of Refueling Stops Python Hard 1835 ms (10.63%) 14.3 MB (36.38%)
1338 Reduce Array Size to The Half Python Medium 597 ms (97.71%) 32.3 MB (57.69%)

Linked List

# Title Solution Difficulty Runtime Memory Usage
21 Merge Two Sorted Lists Python Easy 44 ms (23.34%) 14.2 MB (84.73%)

Math

# Title Solution Difficulty Runtime Memory Usage
7 Reverse Integer Python Easy 12 ms (98.33%) 12.7 MB (50.10%)
9 Palindrome Number Python Easy 44 ms (90.32%) 12.8 MB (42.07%)
29 Divide Two Integers Python Medium 36 ms (45.41%) 14 MB (99.98%)
50 Pow(x, n) Python Medium 46 ms (11.01%) 14.3 MB (16.57%)
263 Ugly Number Python Easy 16 ms (88.03%) 12.6 MB (90.51%)
292 Nim Game Python Easy 16 ms (73.57%) 12.8 MB (38.45%)
326 Power of Three Python Easy 76 ms (80.00%) 13.7 MB (89.35%)
367 Valid Perfect Square Python Easy 24 ms (93.49%) 13.8 MB (48.28%)
371 Sum of Two Integers Python Easy 16 ms (70.42%) 12.8 MB (41.10%)
1009 Complement of Base 10 Integer Python Easy 28 ms (81.73%) 13.8 MB (73.88%)
1351 Count Negative Numbers in a Sorted Matrix Python Easy 132 ms (60.84%) 14.6 MB (95.38%)
1380 Lucky Numbers in a Matrix Python Easy 168 ms (40.78%) 13.9 MB (85.56%)
1913 Maximum Product Difference Between Two Pairs Python Easy 172 ms (52.16%) 15.4 MB (53.08%)
1925 Count Square Sum Triples Python Easy 1796 ms (18.62%) 13.9 MB (98.29%)

Matrix

# Title Solution Difficulty Runtime Memory Usage
542 01 Matrix Python Medium 552 ms (98.50%) 15.8 MB (95.65%)
556 Reshape the Matrix Python Easy 96 ms (96.03%) 14.8 MB (49.25%)
766 Toeplitz Matrix Python Easy 84 ms (94.38%) 13.8 MB (74.67%)

String

# Title Solution Difficulty Runtime Memory Usage
3 Longest Substring Without Repeating Characters Python Medium 56 ms (88.43%) 13.9 MB (63.78%)
5 Longest Palindromic Substring Python Medium 1008 ms (75.10%) 13.8 MB (84.63%)
6 ZigZag Conversion Python Medium ms (%) MB (%)
12 Integer to Roman Python Medium ms (%) MB (%)
13 Roman to Integer Python Easy 47 ms (95.33%) 13.9 MB (31.19%)
14 Longest Common Prefix Python Easy 36 ms (68.12%) 14 MB (23.87%)
20 Valid Parentheses Python Easy 16 ms (90.91%) 12.9 MB (25.60%)
27 Implement strStr() Python Easy 20 ms (99.15%) 14.1 MB (23.38%)
30 Substring with Concatenation of All Words Python Hard 679 ms (52.45%) 14.2 MB (38.75%)
32 Longest Valid Parentheses Python Hard ms (%) MB (%)
38 Count and Say Python Easy 36 ms (69.99%) 13.9 MB (54.59%)
43 Multiply Strings Python Medium ms (%) MB (%)
44 Wildcard Matching Python Hard ms (%) MB (%)
67 Add Binary Python Easy 28 ms (90.19%) 13.9 MB (99.99%)
242 Valid Anagram Python Easy 48 ms (54.93%) 13.4 MB (97.49%)
273 Integer to English Words Python Hard 16 ms (92.36%) 12.7 MB (73.82%)
290 Word Pattern Python Easy 8 ms (99.33%) 12.6 MB (100.00%)
344 Reverse String Python Easy 188 ms (23.86%) 44.1 MB (5.05%)
383 Ransom Note Python Easy 68 ms (44.15%) 13.9 MB (73.26%)
387 First Unique Character in a String Python Easy 135 ms (72.85%) 14.3 MB (7.34%)
551 Student Attendance Record I Python Easy 28 ms (74.71%) 13.9 MB (39.20%)
791 Custom Sort String Python Medium 32 ms (62.80%) 14 MB (93.39%)
804 Unique Morse Code Words Python Easy 51 ms (61.30%) 13.8 MB (75.48%)

LeetCode by C

Linked List

# Title Solution Difficulty Runtime Memory Usage
2 Add Two Numbers C Medium 12 ms (79.76%) 7.2 MB (88.54%)
24 Swap Nodes in Pairs C Medium 0 ms (100.00%) 5.5 MB (59.43%)
237 Delete Node in a Linked List C Easy 4 ms (92.20%) 6.1 MB (59.76%)

Math

# Title Solution Difficulty Runtime Memory Usage
326 Power of Three C Easy 16 ms (59.45%) 5.8 MB (71.25%)
1009 Complement of Base 10 Integer C Easy 0 ms (100.00%) 5.2 MB (48.84%)

LeetCode by SQL

# Title Solution Difficulty Runtime Memory Usage
175 Combine Two Tables SQL Easy 431 ms (60.16%) 0 B (100.00%)
176 Second Highest Salary SQL Easy 269 ms (56.36%) 0 B (100.00%)
181 Employees Earning More Than Their Managers SQL Easy 349 ms (83.88%) 0 B (100.00%)
182 Duplicate Emails SQL Easy 336 ms (80.73%) 0 B (100.00%)
183 Customers Who Never Order SQL Easy 538 ms (65.86%) 0 B (100.00%)
196 Delete Duplicate Emails SQL Easy 2101 ms (56.82%) 0 B (100.00%)
197 Rising Temperature SQL Easy 440 ms (79.88%) 0 B (100.00%)
584 Find Customer Referee SQL Easy 497 ms (68.24%) 0 B (100.00%)
586 Customer Placing the Largest Number of Orders SQL Easy 357 ms (99.49%) 0 B (100.00%)
595 Big Countries SQL Easy 237 ms (99.81%) 0 B (100.00%)
596 Classes More Than 5 Students SQL Easy 264 ms (97.67%) 0 B (100.00%)
620 Not Boring Movies SQL Easy 183 ms (98.39%) 0 B (100.00%)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published