自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

syf_2016的博客

a bit of this, a bit of that...

  • 博客(16)
  • 收藏
  • 关注

转载 机器学习2 逻辑回归Logistic Regression

机器学习2 逻辑回归Logistic Regression

2017-08-30 10:40:00 264

转载 机器学习1 线性回归 Linear Regression

机器学习1 线性回归 Linear Regression

2017-08-30 10:39:11 448

原创 567. Permutation in String 字符串置换

给定两个字符串s1和s2,编写函数判定s2是否是s1的置换字符串。

2017-08-30 10:35:14 239

原创 572. Subtree of Another Tree 子树的判定

给定两棵非空二叉树s和t,判定t是否为s的一棵子树。

2017-08-30 10:31:39 186

原创 606. Construct String from Binary Tree 二叉树的字符串描述

根据给定的二叉树返回根据其建立的字符串,建立原则按照先序序列顺序,有子节点的用括号括起来,叶子节点的括号省略。特别的,若左孩子不存在而有孩子存在,则左孩子的括号不可省略。

2017-08-30 10:30:21 223

原创 617. Merge Two Binary Trees 二叉树合并

将给定的两个二叉树合并,对应节点都存在的话将值相加作为合并后的节点值。

2017-08-30 10:29:00 210

原创 624. Maximum Distance in Arrays 数组最大距离

Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and calculate the distance. We define the distance between

2017-08-30 10:27:08 383

原创 637. Average of Levels in Binary Tree 二叉树每层平均值

Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. 给定一非空二叉树,返回其每层的平均值所构成的数组。

2017-08-30 10:21:52 208

原创 647. Palindromic Substrings 回文子串

Given a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or end indexes are counted as different substrings even they consist

2017-08-30 10:19:14 244

转载 python正则表达式

python正则表达式正则表达式基础1 简单介绍2 数量词的贪婪模式与非贪婪模式3 反斜杠的困扰4 匹配模式re模块1 开始使用re2 Match3 Pattern

2017-08-30 10:11:30 153

转载 30. Substring with Concatenation of All Words

You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) ins that is a concatenation of each word in words exactly once and

2016-07-20 13:25:32 150

原创 374. Guess Number Higher or Lower猜数大小

We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picked.Every time you guess wrong, I'll tell you whether the number is higher or

2016-07-20 13:23:05 502

原创 367. Valid Perfect Square有效的平方数

Given a positive integer num, write a function which returns True ifnum is a perfect square else False.Note:Do not use any built-in library function such assqrt.Example 1:Input: 16Returns:

2016-07-20 13:21:42 372

原创 300. Longest Increasing Subsequence最长递增子序列

Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest increasing subsequence is [2, 3, 7, 101], theref

2016-07-20 13:19:58 738

原创 257. Binary Tree Paths 二叉树的路径

Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree:   1 /   \2     3 \  5All root-to-leaf paths are:["1->2->5", "1->3"]给定二叉树,返回其所有根到叶的路径。

2016-07-20 13:18:34 227

原创 357. Count Numbers with Unique Digits统计各位不同的数字个数

Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x n.Example:Given n = 2, return 91. (The answer should be the total numbers in the range of 0 ≤ x < 100, excludin

2016-07-20 13:15:18 528

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除