Random Wits

Life is too short for a diary

$ about
├── tags

├── bookshelf

├── resources

├── quotes

├── habits

└── bio






Posts Tagged “dp”

Sun 12 Sep 2021

Maximum Subarray

There's an interesting problem I recently solved on leetcode based on dynamic programming. My Github repository contains list of all problems that I have solved.

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. A subarray is a contiguous part of an array.1 ..

Continue reading → programming leetcode code dp