上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 77 下一页
摘要: [抄题]: Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increas 阅读全文
posted @ 2018-08-12 14:40 苗妙苗 阅读(172) 评论(0) 推荐(0)
摘要: [抄题]: Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image. Example: 阅读全文
posted @ 2018-08-12 09:37 苗妙苗 阅读(180) 评论(0) 推荐(0)
摘要: 1. 分解问题的角度: fix 某一维度,尝试另一维度上的所有可能 a. 可能是array的(i, j)pointers, b. 可能是矩形的长与宽, c. 可能是tree的每一个subtree, d. 可能是情景题的每一对pair...2. 求所有解的, 暴力上backtracking吧3. 如果 阅读全文
posted @ 2018-08-12 09:23 苗妙苗 阅读(317) 评论(0) 推荐(0)
摘要: [抄题]: Given a sorted array of integers nums and integer values a, b and c. Apply a quadratic function of the form f(x) = ax2 + bx + c to each element  阅读全文
posted @ 2018-08-11 23:30 苗妙苗 阅读(170) 评论(0) 推荐(0)
摘要: [抄题]: A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammatic numbers that 阅读全文
posted @ 2018-08-11 17:36 苗妙苗 阅读(292) 评论(0) 推荐(0)
摘要: [抄题]: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2-> 阅读全文
posted @ 2018-08-11 17:01 苗妙苗 阅读(282) 评论(0) 推荐(0)
摘要: [抄题]: On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly Kmoves. The rows and columns are 0 indexed, s 阅读全文
posted @ 2018-08-11 15:38 苗妙苗 阅读(321) 评论(0) 推荐(0)
摘要: [抄题]: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: [暴力解法]: 阅读全文
posted @ 2018-08-11 10:14 苗妙苗 阅读(344) 评论(0) 推荐(0)
摘要: [抄题]: Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's per 阅读全文
posted @ 2018-08-11 09:27 苗妙苗 阅读(187) 评论(0) 推荐(0)
摘要: [抄题]: We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For exa 阅读全文
posted @ 2018-08-10 22:07 苗妙苗 阅读(301) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 77 下一页