LeetCode 94. Binary Tree Inorder Traversal

Description https://leetcode.com/problems/binary-tree-inorder-traversal/ Given a binary tree, return the inorder traversal of its nodes’ values. Example: Input: [1,null,2,3] 1 \ 2 / 3…

LeetCode 334. Increasing Triplet Subsequence

Description https://leetcode.com/problems/increasing-triplet-subsequence/ Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.…

LeetCode 160. Intersection of Two Linked Lists

Description https://leetcode.com/problems/intersection-of-two-linked-lists/ Write a program to find the node at which the intersection of two singly linked lists begins. For…

LeetCode 328. Odd Even Linked List

Description https://leetcode.com/problems/odd-even-linked-list/ Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here…

LeetCode 73. Set Matrix Zeroes

Description https://leetcode.com/problems/set-matrix-zeroes/ Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example…

LeetCode 1143. Longest Common Subsequence

Description https://leetcode.com/problems/longest-common-subsequence/ Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a new string…

LeetCode 55. Jump Game

Description https://leetcode.com/problems/jump-game/ Given an array of non-negative integers, you are initially positioned at the first index of the array. Each…

LeetCode 146. LRU Cache

Description https://leetcode.com/problems/lru-cache/ Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) –…

LeetCode 201. Bitwise AND of Numbers Range

Description https://leetcode.com/problems/bitwise-and-of-numbers-range/ Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of…

LeetCode 560. Subarray Sum Equals K

Description https://leetcode.com/problems/subarray-sum-equals-k/ Given an array of integers and an integer k, you need to find the total number of continuous subarrays…