摘要: [抄题]: 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)