摘要:
Problem statement: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the w 阅读全文
摘要:
Problem statement: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, giv 阅读全文
摘要:
Problem statement: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example,Given n = 3, 阅读全文
摘要:
Problem statement: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are total 阅读全文
摘要:
Problem statement: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, 阅读全文
摘要:
Problem statment: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rec 阅读全文
摘要:
Problem statement: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a 阅读全文
摘要:
Problem statement: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. Soluti 阅读全文
摘要:
Problem statement: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an int 阅读全文