Algorithm Coding

Neetcode - Maximum Subarray

Sleep is a function I haven’t called yet. Maximum Subarray Given an array of integers nums, find the subarray with the largest sum and return the sum. A subarray is a contiguous

Neetcode - Longest Increasing Subsequence

Today’s hack is tomorrow’s habit. Longest Increasing Subsequence Given an integer array nums, return the length of the longest strictly increasing subsequence. A subsequence is a sequence that can be derived

Neetcode - Word Break

Every line is a seed - plant wisely. Word Break Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of dictionary

Neetcode - Maximum Product Subarray

Read the error, not the panic. Maximum Product Subarray Given an integer array nums, find a subarray that has the largest product within the array and return it. A subarray is a contiguous

Neetcode - Decode Ways

Write code today that your future self will thank you for. Decode Ways A string consisting of uppercase english characters can be encoded to a number using the following mapping: 'A'