LeetCode 53. Maximum Subarray
LeetCode 53. Maximum Subarray LINK: https://leetcode.com/problems/maximum-subarray/ Matter You are given an integer array. Your task is to find a contiguous part of the array whose total sum is...
LeetCode 53. Maximum Subarray LINK: https://leetcode.com/problems/maximum-subarray/ Matter You are given an integer array. Your task is to find a contiguous part of the array whose total sum is...
LeetCode 217. Contains Duplicate LINK: https://leetcode.com/problems/contains-duplicate/ Matter You are given an integer array. Check whether any element appears more than once. Return true if ...
LeetCode 121. Best Time to Buy and Sell Stock LINK: https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ Matter You are given a list of daily stock prices. Your goal is to determine t...
LeetCode 200. Number of Islands LINK: https://leetcode.com/problems/number-of-islands/ Matter You are given a 2D grid consisting of ‘1’ (land) and ‘0’ (water). Count how many separate islands e...
LeetCode 133. Clone Graph LINK: https://leetcode.com/problems/clone-graph/ Matter You are given a reference to a node in an undirected graph. Create a deep copy of the entire graph and return t...
LeetCode 206. Reverse Linked List LINK: https://leetcode.com/problems/reverse-linked-list/ Matter You are given the head of a singly linked list. Reverse the direction of the list so that all l...
LeetCode 104. Maximum Depth of Binary Tree LINK: https://leetcode.com/problems/maximum-depth-of-binary-tree/ Matter You are given the root of a binary tree. Return the depth of the tree, define...
LeetCode 704. Binary Search LINK: https://leetcode.com/problems/binary-search/ Matter You are given a sorted integer array in ascending order and a target value. Your task is to efficiently det...
LeetCode 125. Valid Palindrome LINK: https://leetcode.com/problems/valid-palindrome/ Matter You are given a string that may contain letters, digits, spaces, and symbols. Determine whether it be...
RAII & SOLID — Core Design Principles Prerequisites - C++ 1. RAII (Resource Acquisition Is Initialization) RAII is a C++ design principle where resource allocation and deallocation ...