摘要: Range Sum Query 2D - Immutable Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col 阅读全文
posted @ 2020-07-26 15:07 十三w~w 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Longest Increasing Subsequence Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,1 阅读全文
posted @ 2020-07-26 14:45 十三w~w 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Game of Life According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathem 阅读全文
posted @ 2020-07-26 14:34 十三w~w 阅读(126) 评论(0) 推荐(0) 编辑