Skip to content

Latest commit

ย 

History

History
38 lines (31 loc) ยท 3.96 KB

File metadata and controls

38 lines (31 loc) ยท 3.96 KB

Leetcode problems

My personal repo with some leetcode problems that I solved.
The files uploaded should be fine regarding license issues with leetcode

Code organisation

  • problems/: Code for a given problem
  • scripts/: Utility code to setup environments for new problems, downloads the description
  • data/: Templates, icons

List of problems

ID Name Difficulty Tags Rust C++ Python Java
1 Two Sum ๐ŸŸข Easy ๐Ÿก Array, ๐Ÿ”‘๐Ÿ—„๏ธ Hash Table ๐Ÿฆ€ ๐Ÿ’ป โ˜•
20 Valid Parentheses ๐ŸŸข Easy ๐Ÿฅž๐Ÿณ Stack, ๐Ÿ“œ๐Ÿ”ค String ๐Ÿฆ€ ๐Ÿ’ป ๐Ÿ โ˜•
49 Group Anagrams ๐ŸŸ  Medium ๐Ÿก Array, ๐Ÿ”‘๐Ÿ—„๏ธ Hash Table, ๐Ÿ”„๐Ÿ“Š Sorting, ๐Ÿ“œ๐Ÿ”ค String ๐Ÿฆ€ ๐Ÿ’ป
125 Valid Palindrome ๐ŸŸข Easy ๐Ÿ“œ๐Ÿ”ค String, ๐Ÿ‘†โฌ…๏ธ๐Ÿ‘ˆ Two Pointers ๐Ÿฆ€ ๐Ÿ’ป ๐Ÿ โ˜•
150 Evaluate Reverse Polish Notation ๐ŸŸ  Medium ๐Ÿก Array, โž—โž• Math, ๐Ÿฅž๐Ÿณ Stack ๐Ÿฆ€ ๐Ÿ’ป ๐Ÿ โ˜•
155 Min Stack ๐ŸŸ  Medium ๐ŸŽจ๐Ÿ› ๏ธ Design, ๐Ÿฅž๐Ÿณ Stack ๐Ÿฆ€ ๐Ÿ’ป
217 Contains Duplicate ๐ŸŸข Easy ๐Ÿก Array, ๐Ÿ”‘๐Ÿ—„๏ธ Hash Table, ๐Ÿ”„๐Ÿ“Š Sorting ๐Ÿฆ€ ๐Ÿ’ป
242 Valid Anagram ๐ŸŸข Easy ๐Ÿ”‘๐Ÿ—„๏ธ Hash Table, ๐Ÿ”„๐Ÿ“Š Sorting, ๐Ÿ“œ๐Ÿ”ค String ๐Ÿฆ€ ๐Ÿ’ป ๐Ÿ
347 Top K Frequent Elements ๐ŸŸ  Medium ๐Ÿก Array, ๐Ÿชฃ๐Ÿ”„๐Ÿ“Š Bucket Sort, ๐Ÿงฎ๐Ÿ“ˆ๐Ÿ”Ž Counting, โœ‚๏ธ๐Ÿ”๐Ÿ† Divide and Conquer, ๐Ÿ”‘๐Ÿ—„๏ธ Hash Table, ๐Ÿ—ƒ๏ธโฌ†๏ธ Heap (Priority Queue), ๐Ÿ”„๐Ÿ“‰๐Ÿ”ข Quickselect, ๐Ÿ”„๐Ÿ“Š Sorting ๐Ÿฆ€ ๐Ÿ’ป ๐Ÿ โ˜•

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.