Skip to content

rvbugs0/leetcode_solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode_solutions

Docs: https://docs.google.com/document/d/1zRtTqF5eiAkXOIwkjpdp4jXCzdAPXWiVcd1IUA8qgCc/edit?usp=sharing

Pattern: Sliding Window

1. Maximum Average Subarray I: https://leetcode.com/problems/maximum-average-subarray-i/
Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/max_avg_sum.js
  1. Minimum size subarray sum: https://leetcode.com/problems/minimum-size-subarray-sum/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/min_size_subarray_sum.py

  2. Longest Substring with At Least K Repeating Characters: https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/longest_substring_k_chars.py

  3. Longest Substring with At Most K Distinct Characters: https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/longest_substring_atmost_k_chars.py

  4. Longest Substring Without Repeating Characters: https://leetcode.com/problems/longest-substring-without-repeating-characters/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/longest_sub_without_rep_chars.py

  5. Longest Repeating Character Replacement: https://leetcode.com/problems/longest-repeating-character-replacement/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/longest_repeating_character_replacement.py

  6. Max Consecutive Ones III: https://leetcode.com/problems/max-consecutive-ones-iii/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/max_consecutive_ones.py

  7. Permutation in String: https://leetcode.com/problems/permutation-in-string/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/permutation_in_string.py

  8. Find All Anagrams in a String: https://leetcode.com/problems/find-all-anagrams-in-a-string/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/find_all_anagams_in_a_string.py

  9. Minimum Window Substring: https://leetcode.com/problems/minimum-window-substring/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/minimum_window_substring.py

  10. Substring with Concatenation of All Words: https://leetcode.com/problems/substring-with-concatenation-of-all-words/
    Solution: Pending

Pattern: Two pointer

  1. Two sum: https://leetcode.com/problems/two-sum/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/two-sum.cpp

  2. Remove Duplicates from Sorted Array: https://leetcode.com/problems/remove-duplicates-from-sorted-array/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/remove_duplicates.py

  3. Squares of a Sorted Array: https://leetcode.com/problems/squares-of-a-sorted-array/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/squares_of_sorted_array.py

  4. 3 Sum : https://leetcode.com/problems/3sum/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/three_sum.py

  5. 3 Sum Closest: https://leetcode.com/problems/3sum-closest/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/three_sum_closest.py

Others

  1. Climbing Stairs: https://leetcode.com/problems/climbing-stairs/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/climbing_stairs.py

  2. Longest Common Prefix: https://leetcode.com/problems/longest-common-prefix/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/longest_common_prefix.js

  3. Merge two sorted lists: https://leetcode.com/problems/merge-two-sorted-lists/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/merge_two_sorted_lists.js

  4. Valid Parentheses: https://leetcode.com/problems/valid-parentheses/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/valid_parentheses.py

  5. Remove Duplicates from Sorted Array: https://leetcode.com/problems/remove-duplicates-from-sorted-array/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/Remove_duplicates_from_sorted_array.py

  6. Remove Element: https://leetcode.com/problems/remove-element/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/remove_element.py

  7. Palindrome number: https://leetcode.com/problems/palindrome-number/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/palindrome_number.cpp

  8. Maximum sub-array: https://leetcode.com/problems/maximum-subarray/
    Solution: https://raw.githubusercontent.com/rvbugs0/leetcode_solutions/main/maximum_subarray.py
    Video reference: https://www.youtube.com/watch?v=yBCzO0FpsVc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors