Skip to content

Questions from Famous Competition & Exercises from Famous Websites

Notifications You must be signed in to change notification settings

wingskh/CompetitiveProgrammingExercises

Repository files navigation

Algorithm Exercises

Google’s Online Challenge

1.  GOCC19: Google's Online Challenge - Coding - Intern (SEA) Question 2
    GOC_Question2_2020.py

2.  Mock Interview 10-2021
    Mock_Interview_202110.py

Google’s Kick Start Coding Competitions

1.  Kick Start 2019 - Round A: Training
    RoundA_Training_2019.py
    https://codingcompetitions.withgoogle.com/kickstart/round/0000000000050e01/00000000000698d6

Facebook Hacker Cup

2020:

1.  Qualification Round Problem B: Alchemy
    Facebook Hacker Cup\2022\Qualification Round\Question_B.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2020/qualification-round/problems/B

2.  Round 1 Problem A1: Perimetric - Chapter 1
    Facebook Hacker Cup\2020\Round 1\Question_A1.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2020/round-1/problems/A1

3.  Round 1 Problem B: Dislodging Logs
    Round1_QuestionB_2020.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2020/round-1/problems/B

2022:

1.  Qualification Round Problem A: Second Hands
    Facebook Hacker Cup\2022\Qualification Round\Question_A.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2022/qualification-round/problems/A

2.  Qualification Round Problem B1: Second Friend
    Facebook Hacker Cup\2022\Qualification Round\Question_B1.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2022/qualification-round/problems/B1

3.  Qualification Round Problem B2: Second Second Friend
    Facebook Hacker Cup\2022\Qualification Round\Question_B2.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2022/qualification-round/problems/B2

4.  Qualification Round Problem C1: Second Meaning
    Facebook Hacker Cup\2022\Qualification Round\Question_C1.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2022/qualification-round/problems/C1

5.  Qualification Round Problem C2: Second Second Meaning
    Facebook Hacker Cup\2022\Qualification Round\Question_C2.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2022/qualification-round/problems/C2

2023:

1.  Practice Round Problem A1: Cheeseburger Corollary 1
    Facebook Hacker Cup\2023\Practice Round\Question_A1.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2023/practice-round/problems/A1

2.  Practice Round Problem B: Dim Sum Delivery
    Facebook Hacker Cup\2023\Practice Round\Question_B.py
    https://www.facebook.com/codingcompetitions/hacker-cup/2023/practice-round/problems/B

LeetCode Exercise:

1.      Two Sum (Difficulty: Easy)
        Two_Sum.py
        https://leetcode.com/problems/two-sum/

2.      Add Two Numbers (Difficulty: Medium)
        Add_Two_Numbers.py
        https://leetcode.com/problems/add-two-numbers/

3.      Longest Substring Without Repeating Characters (Difficulty: Medium)
        Longest_Substring_Without_Repeating_Characters.py
        https://leetcode.com/problems/longest-substring-without-repeating-characters/

4.      Median of Two Sorted Arrays (Difficulty: Hard)
        Median_of_Two_Sorted_Arrays.py
        https://leetcode.com/problems/median-of-two-sorted-arrays/

5.      Longest Palindromic Substring (Difficulty: Medium)
        Longest_Palindromic_Substring.py
        https://leetcode.com/problems/longest-palindromic-substring/

6.      ZigZag Conversion (Difficulty: Medium)
        ZigZag_Conversion.py
        https://leetcode.com/problems/zigzag-conversion/

11.     Container With Most Water (Difficulty: Medium)
        Container_With_Most_Water.py
        https://leetcode.com/problems/container-with-most-water/

13.     Roman to Integer (Difficulty: Easy)
        Roman_to_Integer.py
        https://leetcode.com/problems/roman-to-integer/
        https://leetcode.com/problems/roman-to-integer/discuss/2428756/Python-oror-Easily-Understood-oror-Faster-than-98-oror-Less-than-76-oror-O(n)

15.     3Sum (Difficulty: Medium)
        3Sum.py
        https://leetcode.com/problems/3sum/

16.     3Sum Closest (Difficulty: Medium)
        3Sum_Closest.py
        https://leetcode.com/problems/3sum-closest/

17.     Letter Combinations of a Phone Number (Difficulty: Medium)
        Letter_Combinations_of_a_Phone_Number.py
        https://leetcode.com/problems/letter-combinations-of-a-phone-number/

19.     Remove Nth Node From End of List (Difficulty: Medium)
        Remove_Nth_Node_From_End_of_List.py
        https://leetcode.com/problems/remove-nth-node-from-end-of-list/

20.     Valid Parentheses (Difficulty: Easy)
        Valid_Parentheses.py
        https://leetcode.com/problems/valid-parentheses/

21.     Merge Two Sorted Lists (Difficulty: Easy)
        Merge_Two_Sorted_Lists.py
        https://leetcode.com/problems/merge-two-sorted-lists/

22.     Generate Parentheses (Difficulty: Medium)
        Generate_Parentheses.py
        https://leetcode.com/problems/generate-parentheses/

23.     Merge k Sorted Lists (Difficulty: Hard)
        Merge_k_Sorted_Lists.py
        https://leetcode.com/problems/merge-k-sorted-lists/

25.     Reverse Nodes in k-Group (Difficulty: Hard)
        Reverse_Nodes_in_k-Group.py
        https://leetcode.com/problems/reverse-nodes-in-k-group/

30.     Substring with Concatenation of All Words (Difficulty: Hard)
        Substring_with_Concatenation_of_All_Words.py
        https://leetcode.com/problems/substring-with-concatenation-of-all-words/
        https://leetcode.com/problems/substring-with-concatenation-of-all-words/discuss/2419817/python-easily-understood-faster-than-96-less-than-78-onm/1540235

33.     Search in Rotated Sorted Array (Difficulty: Medium)
        Search_in_Rotated_Sorted_Array.py
        https://leetcode.com/problems/search-in-rotated-sorted-array/

36.     Valid Sudoku (Difficulty: Medium)
        Valid_Sudoku.py
        https://leetcode.com/problems/valid-sudoku/

39.     Combination Sum (Difficulty: Medium)
        Combination_Sum.py
        https://leetcode.com/problems/combination-sum/

42.     Trapping Rain Water (Difficulty: Hard)
        Trapping_Rain_Water.py
        https://leetcode.com/problems/trapping-rain-water/

48.     Rotate Image (Difficulty: Medium)
        Rotate_Image.py
        https://leetcode.com/problems/rotate-image/
        https://leetcode.com/problems/rotate-image/discuss/2503184/Python-oror-Easily-Understood-oror-Faster-than-99-oror-Less-than-99

49.     Group Anagrams (Difficulty: Medium)
        Group_Anagrams.py
        https://leetcode.com/problems/group-anagrams/
        https://leetcode.com/problems/group-anagrams/discuss/2384037/python-easily-understood-hash-table-fast-simple

51.     N-Queens (Difficulty: Hard)
        N-Queens.py
        https://leetcode.com/problems/n-queens/

53.     Maximum Subarray (Difficulty: Medium)
        Maximum_Subarray.py
        https://leetcode.com/problems/maximum-subarray/

57.     Insert Interval (Difficulty: Medium)
        Insert_Interval.py
        https://leetcode.com/problems/insert-interval/

62.     Unique Paths (Difficulty: Medium)
        Unique_Paths.py
        https://leetcode.com/problems/unique-paths/
        https://leetcode.com/problems/unique-paths/discuss/2363008/Python-oror-Detailed-Explanation-oror-Easy-Understand-oror-DP-oror-MATH

72.     Edit Distance (Difficulty: Hard)
        Edit_Distance.py
        https://leetcode.com/problems/edit-distance/

74.     Search a 2D Matrix (Difficulty: Medium)
        Search_a_2D_Matrix.py
        https://leetcode.com/problems/search-a-2d-matrix/

76.     Minimum Window Substring (Difficulty: Hard)
        Minimum_Window_Substring.py
        https://leetcode.com/problems/minimum-window-substring/

84.     Largest Rectangle in Histogram (Difficulty: Hard)
        Largest_Rectangle_in_Histogram.py
        https://leetcode.com/problems/word-search/

79.     Word Search (Difficulty: Medium)
        Word_Search.py
        https://leetcode.com/problems/word-search/

97.     Interleaving String (Difficulty: Medium)
        Interleaving_String.py
        https://leetcode.com/problems/interleaving-string/

98.     Validate Binary Search Tree (Difficulty: Medium)
        Validate_Binary_Search_Tree.py
        https://leetcode.com/problems/validate-binary-search-tree/
        https://leetcode.com/problems/validate-binary-search-tree/discuss/2409583/python-easily-understood-faster-than-96-recursion

100.    Same Tree (Difficulty: Easy)
        Same_Tree.py
        https://leetcode.com/problems/same-tree/

102.    Binary Tree Level Order Traversal (Difficulty: Medium)
        Binary_Tree_Level_Order_Traversal.py
        https://leetcode.com/problems/binary-tree-level-order-traversal/

104.    Maximum Depth of Binary Tree (Difficulty: Easy)
        Maximum_Depth_of_Binary_Tree.py
        https://leetcode.com/problems/maximum-depth-of-binary-tree/

105.    Construct Binary Tree from Preorder and Inorder Traversal (Difficulty: Medium)
        Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.py
        https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/

108.    Convert Sorted Array to Binary Search Tree (Difficulty: Easy)
        Convert_Sorted_Array_to_Binary_Search_Tree.py
        https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/

110.    Balanced Binary Tree (Difficulty: Easy)
        Balanced_Binary_Tree.py
        https://leetcode.com/problems/balanced-binary-tree/

115.    Distinct Subsequences (Difficulty: Hard)
        Distinct_Subsequences.py
        https://leetcode.com/problems/distinct-subsequences/

114.    Flatten Binary Tree to Linked List (Difficulty: Medium)
        Flatten_Binary_Tree_to_Linked_List.py
        https://leetcode.com/problems/filling-bookcase-shelves/

121.    Best Time to Buy and Sell Stock (Difficulty: Easy)
        Best_Time_to_Buy_and_Sell_Stock.py
        https://leetcode.com/problems/best-time-to-buy-and-sell-stock/

124.    Binary Tree Maximum Path Sum (Difficulty: Hard)
        Binary_Tree_Maximum_Path_Sum.py
        https://leetcode.com/problems/binary-tree-maximum-path-sum/

125.    Valid Palindrome (Difficulty: Easy)
        Valid_Palindrome.py
        https://leetcode.com/problems/valid-palindrome/

<!-- 126.    Word Ladder II (Difficulty: Hard)
        Word_Ladder_II.py
        https://leetcode.com/problems/word-ladder-ii/ -->

128.    Longest Consecutive Sequence (Difficulty: Medium)
        Longest_Consecutive_Sequence.py
        https://leetcode.com/problems/longest-consecutive-sequence/

133.    Clone Graph (Difficulty: Medium)
        Clone_Graph.py
        https://leetcode.com/problems/clone-graph/

138.    Copy List with Random Pointer (Difficulty: Medium)
        Copy_List_with_Random_Pointer.py
        https://leetcode.com/problems/copy-list-with-random-pointer/

141.    Linked List Cycle (Difficulty: Easy)
        Linked_List_Cycle.py
        https://leetcode.com/problems/linked-list-cycle/

143.    Reorder List (Difficulty: Medium)
        Reorder_List.py
        https://leetcode.com/problems/reorder-list/

146.    LRU Cache (Difficulty: Medium)
        LRU_Cache.py
        https://leetcode.com/problems/lru-cache/

148.    Sort List (Difficulty: Medium)
        Sort_List.py
        https://leetcode.com/problems/sort-list/

150.    Evaluate Reverse Polish Notation (Difficulty: Medium)
        Evaluate_Reverse_Polish_Notation.py
        https://leetcode.com/problems/evaluate-reverse-polish-notation/

153.    Find Minimum in Rotated Sorted Array (Difficulty: Medium)
        Find_Minimum_in_Rotated_Sorted_Array.py
        https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/

155.    Min Stack (Difficulty: Medium)
        Min_Stack.py
        https://leetcode.com/problems/min-stack/

167.    Two Sum II - Input Array Is Sorted (Difficulty: Medium)
        Two_Sum_II_-_Input_Array_Is_Sorted.py
        https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/

187.    Repeated DNA Sequences (Difficulty: Medium)
        Repeated_DNA_Sequences.py
        https://leetcode.com/problems/repeated-dna-sequences/

188.    Best Time to Buy and Sell Stock IV (Difficulty: Hard)
        Best_Time_to_Buy_and_Sell_Stock_IV.py
        https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/

199.    Binary Tree Right Side View (Difficulty: Medium)
        Best_Time_to_Buy_and_Sell_Stock_IV.py
        https://leetcode.com/problems/binary-tree-right-side-view/

200.    Number of Islands (Difficulty: Medium)
        Number_of_Islands.py
        https://leetcode.com/problems/number-of-islands/
        https://leetcode.com/problems/number-of-islands/discuss/2499215/Python-oror-No-Recursion-oror-Faster-than-82-oror-Less-than-92

206.    Reverse Linked List (Difficulty: Easy)
        Reverse_Linked_List.py
        https://leetcode.com/problems/reverse-linked-list/

208.    Implement Trie (Prefix Tree) (Difficulty: Medium)
        Implement_Trie_(Prefix_Tree).py
        https://leetcode.com/problems/implement-trie-prefix-tree/

211.    Design Add and Search Words Data Structure (Difficulty: Medium)
        Design_Add_and_Search_Words_Data_Structure.py
        https://leetcode.com/problems/design-add-and-search-words-data-structure/

217.    Contains Duplicate (Difficulty: Easy)
        Contains_Duplicate.py
        https://leetcode.com/problems/contains-duplicate/
        https://leetcode.com/problems/contains-duplicate/discuss/2381975/python-easily-understood-dp-faster-than-88-simple

212.    Word Search II (Difficulty: Hard)
        Word_Search_II.py
        https://leetcode.com/problems/word-search-ii/

215.    Kth Largest Element in an Array (Difficulty: Medium)
        Kth_Largest_Element_in_an_Array.py
        https://leetcode.com/problems/kth-largest-element-in-an-array/

224.    Basic Calculator (Difficulty: Hard)
        Basic_Calculator.py
        https://leetcode.com/problems/basic-calculator/

226.    Invert Binary Tree (Difficulty: Easy)
        Invert_Binary_Tree.py
        https://leetcode.com/problems/invert-binary-tree/

230.    Kth Smallest Element in a BST (Difficulty: Medium)
        Kth_Smallest_Element_in_a_BST.py
        https://leetcode.com/problems/kth-smallest-element-in-a-bst/

235.    Lowest Common Ancestor of a Binary Search Tree (Difficulty: Medium)
        Lowest_Common_Ancestor_of_a_Binary_Search_Tree.py
        https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
        https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/discuss/2414941/Python-oror-Detailed-Explanation-oror-Easily-Understood-oror-O(h)-oror-O(n)

236.    Lowest Common Ancestor of a Binary Tree (Difficulty: Medium)
        Lowest_Common_Ancestor_of_a_Binary_Tree.py
        https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/

239.    Sliding Window Maximum (Difficulty: Hard)
        Sliding_Window_Maximum.py
        https://leetcode.com/problems/sliding-window-maximum/

240.    Search a 2D Matrix II (Difficulty: Medium)
        Search_a_2D_Matrix_II.py
        https://leetcode.com/problems/search-a-2d-matrix-ii/

242.    Valid Anagram (Difficulty: Easy)
        Valid_Anagram.py
        https://leetcode.com/problems/valid-anagram/

234.    Palindrome Linked List (Difficulty: Easy)
        Palindrome_Linked_List.java
        https://leetcode.com/problems/palindrome-linked-list/

238.    Product of Array Except Self (Difficulty: Medium)
        Product_of_Array_Except_Self.py
        https://leetcode.com/problems/product-of-array-except-self/

287.    Find the Duplicate Number (Difficulty: Medium)
        Find_the_Duplicate_Number.py
        https://leetcode.com/problems/find-the-duplicate-number/

297.    Serialize and Deserialize Binary Tree (Difficulty: Hard)
        Serialize_and_Deserialize_Binary_Tree.py
        https://leetcode.com/problems/serialize-and-deserialize-binary-tree/

300.    Longest Increasing Subsequence (Difficulty: Medium)
        Longest_Increasing_Subsequence.py
        https://leetcode.com/problems/longest-increasing-subsequence/
        https://leetcode.com/problems/longest-increasing-subsequence/discuss/2395913/python-fast-than-95-less-than-83-onlogn

312.    Burst Balloons (Difficulty: hard)
        Burst_Balloons.py
        https://leetcode.com/problems/burst-balloons/

322.    Coin Change (Difficulty: Medium)
        Coin_Change.py
        https://leetcode.com/problems/coin-change/

326.    Power of Three (Difficulty: Easy)
        Power_of_Three.py
        https://leetcode.com/problems/power-of-three/

342.    Power of Four (Difficulty: Easy)
        Power_of_Four.py
        https://leetcode.com/problems/power-of-four/
        https://leetcode.com/problems/power-of-four/discuss/2461447/python-easily-understood-faster-than-92-explanation

347.    Top K Frequent Elements (Difficulty: Medium)
        Top_K_Frequent_Elements.py
        https://leetcode.com/problems/top-k-frequent-elements/

355.    Design Twitter (Difficulty: Medium)
        Design_Twitter.py
        https://leetcode.com/problems/design-twitter/

375.    Guess Number Higher or Lower II (Difficulty: Medium)
        Guess_Number_Higher_or_Lower_II.py
        https://leetcode.com/problems/guess-number-higher-or-lower-ii/
        https://leetcode.com/problems/guess-number-higher-or-lower-ii/discuss/1510747/python-dp-beat-9752-in-time-99-in-memory-with-explanation

377.    Combination Sum IV (Difficulty: Medium)
        Combination_Sum_IV.py
        https://leetcode.com/problems/combination-sum-iv/
        https://leetcode.com/problems/combination-sum-iv/discuss/2381090/python-easily-understood-dp-faster-than-92-simple

378.    Kth Smallest Element in a Sorted Matrix (Difficulty: Medium)
        Kth_Smallest_Element_in_a_Sorted_Matrix.py
        https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/
        https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/discuss/2385771/python-detailed-explanation-easy-understand-binarysearch

383.    Ransom Note (Difficulty: Easy)
        Ransom_Note.py
        https://leetcode.com/problems/ransom-note/
        https://leetcode.com/problems/ransom-note/discuss/2476142/Python-oror-Easily-Understood-oror-Faster-than-96-oror-Fast

387.    First Unique Character in a String (Difficulty: Easy)
        First_Unique_Character_in_a_String.py
        https://leetcode.com/problems/first-unique-character-in-a-string/
        https://leetcode.com/problems/first-unique-character-in-a-string/discuss/2431833/python-easily-understood-faster-than-997-5-lines

387.    First Unique Character in a String (Difficulty: Easy)
        First_Unique_Character_in_a_String.py
        https://leetcode.com/problems/first-unique-character-in-a-string/
        https://leetcode.com/problems/first-unique-character-in-a-string/discuss/2431833/Python-oror-Easily-Understood-oror-Faster-than-99.7-oror-5-Lines

410.    Split Array Largest Sum (Difficulty: Hard)
        Split_Array_Largest_Sum.java
        https://leetcode.com/problems/split-array-largest-sum/

416.    Partition Equal Subset Sum (Difficulty: Medium)
        Partition_Equal_Subset_Sum.py
        https://leetcode.com/problems/partition-equal-subset-sum/

417.    Pacific Atlantic Water Flow (Difficulty: Medium)
        Pacific_Atlantic_Water_Flow.py
        https://leetcode.com/problems/pacific-atlantic-water-flow/

424.    Longest Repeating Character Replacement (Difficulty: Medium)
        Longest_Repeating_Character_Replacement.py
        https://leetcode.com/problems/longest-repeating-character-replacement/

458.    Poor Pigs (Difficulty: Hard)
        Poor_Pigs.py
        https://leetcode.com/problems/poor-pigs/
        https://leetcode.com/problems/poor-pigs/discuss/2387610/Python-oror-Detailed-Explanation-oror-Faster-Than-98-oror-Easily-Understood-oror-Simple-oror-MATH

474.    Ones and Zeroes (Difficulty: Medium)
        Ones_and_Zeroes.py
        https://leetcode.com/problems/ones-and-zeroes/

494.    Target Sum (Difficulty: Medium)
        Target_Sum.py
        https://leetcode.com/problems/target-sum/

516.    Longest Palindromic Subsequence (Difficulty: Medium)
        Longest_Palindromic_Subsequence.py
        https://leetcode.com/problems/longest-palindromic-subsequence/

532.    K-diff Pairs in an Array (Difficulty: Medium)
        K-diff_Pairs_in_an_Array.py
        https://leetcode.com/problems/k-diff-pairs-in-an-array/

543.    Diameter of Binary Tree (Difficulty: Easy)
        Diameter_of_Binary_Tree.py
        https://leetcode.com/problems/diameter-of-binary-tree/

567.    Permutation in String (Difficulty: Medium)
        Permutation_in_String.py
        https://leetcode.com/problems/permutation-in-string/

572.    Subtree of Another Tree (Difficulty: Easy)
        Subtree_of_Another_Tree.py
        https://leetcode.com/problems/subtree-of-another-tree/

583.    Delete Operation for Two Strings (Difficulty: Medium)
        Delete_Operation_for_Two_Strings.py
        https://leetcode.com/problems/delete-operation-for-two-strings/
        https://leetcode.com/problems/delete-operation-for-two-strings/discuss/1502818/python-3-5-lines-with-top-down-dp-faster-than-8175

621.    Task Scheduler (Difficulty: Medium)
        Task_Scheduler.py
        https://leetcode.com/problems/task-scheduler/


646.    Maximum Length of Pair Chain (Difficulty: Medium)
        Maximum_Length_of_Pair_Chain.py
        https://leetcode.com/problems/maximum-length-of-pair-chain/

659.    Split Array into Consecutive Subsequences (Difficulty: Medium)
        Split_Array_into_Consecutive_Subsequences.py
        https://leetcode.com/problems/split-array-into-consecutive-subsequences/
        https://leetcode.com/problems/split-array-into-consecutive-subsequences/discuss/2448243/python-easily-understood-faster-than-90-explanation

665.    Non-decreasing Array (Difficulty: Medium)
        Non-decreasing_Array.java
        https://leetcode.com/problems/non-decreasing-array/

703.    Kth Largest Element in a Stream (Difficulty: Easy)
        Kth_Largest_Element_in_a_Stream.py
        https://leetcode.com/problems/kth-largest-element-in-a-stream/

704.    Binary Search (Difficulty: Easy)
        Binary_Search.py
        https://leetcode.com/problems/binary-search/

718.    Maximum Length of Repeated Subarray (Difficulty: Medium)
        Maximum_Length_of_Repeated_Subarray.py
        https://leetcode.com/problems/maximum-length-of-repeated-subarray/

727.    Minimum Window Subsequence (Difficulty: Hard)
        Minimum_Window_Subsequence.py
        https://leetcode.com/problems/minimum-window-subsequence/

729.    My Calendar I (Difficulty: Medium)
        My_Calendar_I.py
        https://leetcode.com/problems/my-calendar-i/
        https://leetcode.com/problems/my-calendar-i/discuss/2372304/Python-oror-Detailed-Explanation-oror-Easy-Understand-oror-No-Libray-oror-Binary-Search

733.    Flood Fill (Difficulty: Easy)
        Flood_Fill.py
        https://leetcode.com/problems/flood-fill/

739.    Daily Temperatures (Difficulty: Medium)
        Daily_Temperatures.py
        https://leetcode.com/problems/daily-temperatures/

796.    Rotate String (Difficulty: Easy)
        Rotate_String.java
        https://leetcode.com/problems/rotate-string/

804.    Unique Morse Code Words (Difficulty: Easy)
        Unique_Morse_Code_Words.py
        https://leetcode.com/problems/unique-morse-code-words/
        https://leetcode.com/problems/unique-morse-code-words/discuss/2437990/Python-oror-Easily-Understood-oror-Faster-than-99.7-oror-2-Lines

813.    Largest Sum of Averages (Difficulty: Medium)
        Largest_Sum_of_Averages.py
        https://leetcode.com/problems/largest-sum-of-averages/

823.    Binary Trees With Factors (Difficulty: Medium)
        Binary_Trees_With_Factors.py
        https://leetcode.com/problems/binary-trees-with-factors/
        https://leetcode.com/problems/binary-trees-with-factors/discuss/2402569/Python-oror-Detailed-Explanation-oror-Easily-Understood-oror-DP-oror-O(n-*-sqrt(n))

831.    Masking Personal Information (Difficulty: Medium)
        Masking_Personal_Information.py
        https://leetcode.com/problems/masking-personal-information/

853.    Car Fleet (Difficulty: Medium)
        Car_Fleet.py
        https://leetcode.com/problems/car-fleet/

858.    Mirror Reflection (Difficulty: Medium)
        Mirror_Reflection.py
        https://leetcode.com/problems/mirror-reflection/
        https://leetcode.com/problems/mirror-reflection/discuss/2376489/python-easily-understood-detailed-explanation-easy-understand-math-fast-simple

869.    Reordered Power of 2 (Difficulty: Medium)
        Reordered_Power_of_2.py
        https://leetcode.com/problems/reordered-power-of-2/
        https://leetcode.com/problems/reordered-power-of-2/discuss/2482894/Python-oror-Easily-Understood-oror-Faster-than-96-oror-Fast

871.    Minimum Number of Refueling Stops (Difficulty: Hard)
        Minimum_Number_of_Refueling_Stops.py
        https://leetcode.com/problems/minimum-number-of-refueling-stops/
        https://leetcode.com/problems/minimum-number-of-refueling-stops/discuss/2452673/python-easily-understood-faster-than-90-fast

875.    Koko Eating Bananas (Difficulty: Medium)
        Koko_Eating_Bananas.py
        https://leetcode.com/problems/koko-eating-bananas/

879.    Profitable Schemes (Difficulty: Hard)
        Profitable_Schemes.py
        https://leetcode.com/problems/profitable-schemes/

916.    Word Subsets (Difficulty: Medium)
        Word_Subsets.py
        https://leetcode.com/problems/word-subsets/

936.    Stamping The Sequence (Difficulty: Hard)
        Stamping_The_Sequence.py
        https://leetcode.com/problems/stamping-the-sequence/

956.    Tallest Billboard (Difficulty: Hard)
        Tallest_Billboard.py
        https://leetcode.com/problems/tallest-billboard/

973.    K Closest Points to Origin (Difficulty: Medium)
        K_Closest_Points_to_Origin.py
        https://leetcode.com/problems/k-closest-points-to-origin/

980.    Unique Paths III (Difficulty: Hard)
        Unique_Paths_III.py
        https://leetcode.com/problems/unique-paths-iii/

981.    Time Based Key-Value Store (Difficulty: Medium)
        Time_Based_Key-Value_Store.py
        https://leetcode.com/problems/time-based-key-value-store/

1049.   Last Stone Weight II (Difficulty: Medium)
        Last_Stone_Weight_II.py
        https://leetcode.com/problems/last-stone-weight-ii/

1092.   Shortest Common Supersequence (Difficulty: Hard)
        Shortest_Common_Supersequence.py
        https://leetcode.com/problems/shortest-common-supersequence/

1105.   Filling Bookcase Shelves (Difficulty: Medium)
        Filling_Bookcase_Shelves.py
        https://leetcode.com/problems/filling-bookcase-shelves/

1143.   Longest Common Subsequence (Difficulty: Medium)
        Longest_Common_Subsequence.py
        https://leetcode.com/problems/longest-common-subsequence/

1046.   Last Stone Weight (Difficulty: Easy)
        Last_Stone_Weight.py
        https://leetcode.com/problems/last-stone-weight/

1220.   Count Vowels Permutation (Difficulty: Hard)
        Count_Vowels_Permutation.py
        https://leetcode.com/problems/count-vowels-permutation/
        https://leetcode.com/problems/count-vowels-permutation/discuss/2391936/Python-oror-Detailed-Explanation-oror-Easily-Understood-oror-DP-oror-Simple-oror-MATH

1278.   Palindrome Partitioning III (Difficulty: Hard)
        Palindrome_Partitioning_III.py
        https://leetcode.com/problems/palindrome-partitioning-iii/

1328.   Break a Palindrome (Difficulty: Medium)
        Break_a_Palindrome.py
        https://leetcode.com/problems/break-a-palindrome/

1329.   Sort the Matrix Diagonally (Difficulty: Medium)
        Sort_the_Matrix_Diagonally.py
        https://leetcode.com/problems/sort-the-matrix-diagonally/
        https://leetcode.com/problems/sort-the-matrix-diagonally/discuss/2493821/python-easily-understood-faster-than-93-less-than-99

1335.   Minimum Difficulty of a Job Schedule (Difficulty: Hard)
        Minimum_Difficulty_of_a_Job_Schedule.py
        https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule/

1338.   Reduce Array Size to The Half (Difficulty: Medium)
        Reduce_Array_Size_to_The_Half.py
        https://leetcode.com/problems/reduce-array-size-to-the-half/
        https://leetcode.com/problems/reduce-array-size-to-the-half/discuss/2443799/python-easily-understood-faster-than-90-explanation

1448.   Count Good Nodes in Binary Tree (Difficulty: Medium)
        Count_Good_Nodes_in_Binary_Tree.py
        https://leetcode.com/problems/count-good-nodes-in-binary-tree/

1926.   Nearest Exit from Entrance in Maze (Difficulty: Medium)
        Nearest_Exit_from_Entrance_in_Maze.py
        https://leetcode.com/problems/nearest-exit-from-entrance-in-maze/

2364.   Count Number of Bad Pairs (Difficulty: Medium)
        Count_Number_of_Bad_Pairs.py
        https://leetcode.com/problems/count-number-of-bad-pairs/
        https://leetcode.com/problems/count-number-of-bad-pairs/discuss/2388687/Python-oror-Detailed-Explanation-oror-Faster-Than-100-oror-Less-than-100-oror-Simple-oror-MATH

2365.   Task Scheduler II (Difficulty: Medium)
        Task_Scheduler_II.py
        https://leetcode.com/problems/task-scheduler-ii/
        https://leetcode.com/problems/task-scheduler-ii/discuss/2388526/python-easily-understood-faster-than-98-simple-o0

AtCoder Beginner Contest 175

1.      C: Walking Takahashi
        PartC_Walking_Takahashi.py
        https://atcoder.jp/contests/abc175/tasks/abc175_c

Mock_Google_Interview_Questions

1.      Remove Islands
        RemoveIslands.py
        https://www.youtube.com/watch?v=4tYoVx0QoN0&t=426s&ab_channel=Cl%C3%A9mentMihailescu

2.      Find Suitable Apartment
        FindSuitableApartment.py
        https://www.youtube.com/watch?v=rw4s4M3hFfs&t=406s

3.      Relation Question
        RelationQuestion.py
        https://www.youtube.com/watch?v=V0xjK_6ZoEY&t=612s&ab_channel=KeepOnCoding

4.      StringPermutation
        StringPermutation.py
        https://www.youtube.com/watch?v=JHzX-57dgn0&ab_channel=KeertiPurswani

5.      Reverse Linked List
        ReverseLinkedList.py
        https://www.youtube.com/watch?v=vHKzIPwWQkg&t=150s&ab_channel=Cl%C3%A9mentMihailescu

Codewars

1.      List Filtering
        List_Filtering.js
        https://www.codewars.com/kata/53dbd5315a3c69eed20002dd/javascript

2.      Persistent Bugger
        Persistent_Bugger.js
        https://www.codewars.com/kata/55bf01e5a717a0d57e0000ec/javascript

3.      Categorize New Member
        Categorize_New_Member.js
        https://www.codewars.com/kata/5502c9e7b3216ec63c0001aa/javascript

4.      Regex validate PIN code
        Regex_validate_PIN_code.js
        https://www.codewars.com/kata/55f8a9c06c018a0d6e000132/javascript

5.      Unique In Order
        Unique_In_Order.js
        https://www.codewars.com/kata/54e6533c92449cc251001667/javascript

6.      Beginner Series #3 Sum of Numbers
        Beginner_Series_#3_Sum_of_Numbers.js
        https://www.codewars.com/kata/55f2b110f61eb01779000053/javascript

About

Questions from Famous Competition & Exercises from Famous Websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published