Find the maximum sum of any continuous subarray of size K
You are given an array of integers with size N, and a number K. Find the maximum sum of continuous subarray of size K.
Technical essays, architectural deep-dives, and practical guides at the intersection of code and design.
Page 15 of 30
You are given an array of integers with size N, and a number K. Find the maximum sum of continuous subarray of size K.
Topological sort on a DAG using DFS — explained with a build system dependency example where packages must be compiled in dependency order.
Given a Binary tree, print out nodes in level order traversal from left to right.
LeetCode "4Sum" solved by sorting plus fixing two elements and two-pointering the rest, skipping duplicates, with full code walkthrough.
LeetCode "Rearrange Spaces Between Words" solved by counting spaces and dividing them evenly between word gaps, with full code walkthrough.
LeetCode "Maximum Non-Negative Product in a Matrix" solved with a max/min dynamic programming table, with full code walkthrough.
Given a string s, return the maximum number of unique substrings that the given string can be split into.
LeetCode "Crawler Log Folder" solved by tracking folder depth with a simple counter, with full code walkthrough and complexity analysis.
Replace all spaces in a string with '%20' (three characters). Do this in place and assume you have enough space in array
Implement an algorithm to determine if a string has all the characters as unique.
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
Given two strings s and t , write a function to determine if t is an anagram of s.