思考のかけら

Mensu - 思考のかけら

Mensu's Blog concerning what he has learned during programming

LeetCode: 63. Unique Paths II

week 12

The article was initially posted on 2017-12-04. Description Unique Paths II - LeetCode Follow up for “Unique Paths”: Now consider if some obstacles are added to the grids. How many uniq...


LeetCode: 62. Unique Paths

week 11

The article was initially posted on 2017-11-24. Description Unique Paths - LeetCode A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). The ...


LeetCode: 53. Maximum Subarray

week 10

The article was initially posted on 2017-11-23. Description Maximum Subarray - LeetCode Find the contiguous subarray within an array (containing at least one number) which has the larges...


LeetCode: 32. Longest Valid Parentheses

week 9

The article was initially posted on 2017-11-23. Description Longest Valid Parentheses - LeetCode Given a string containing just the characters '(' and ')', find the length of the longest...


LeetCode: 11. Container With Most Water

week 8

The article was initially posted on 2017-10-25. Description Container With Most Water - LeetCode Given \(n\) non-negative integers \(a_1, a_2, ..., a_n\), where each represents a point a...