LeetCode Arrays Sliding Window Subarray Product Less Than K: numSubarrayProductLessThanK Length of Longest Subarray With at Most K Frequency: maxSubarrayLength Boyer-Moore Voting Algorithm 169. Majority Element: majorityElement 229. Majority Element II: majorityElement2 Hashing 3162. Find the Number of Good Pairs I: numberOfPairs 3164. Find the Number of Good Pairs II: numberOfPairs2 Stacks Maximum Nesting Depth of the Parentheses: maxDepth Evaluate Reverse Polish Notation: evalRPN Trees Binary Indexed Tree Heap Segment Tree 307. Range Sum Query - Mutable: NumArray 3165. Maximum Sum of Subsequence With Non-adjacent Elements: maximumSumSubsequence Dynamic Programming 198. House Robber: rob 213. House Robber II: rob2