- 博客(53)
- 收藏
- 关注
原创 快速搭建多终端同步的 github + hexo 静态博客
快速搭建多终端同步的 github + hexo 静态博客最近心血来潮想搭建自己的个人博客,在考察了多种博客的搭建方法后,毅然选择了 GitHub + hexo 的静态博客搭建方法(主要原因是对我来说比较简单)。本人工作机是在Mac,所以主要搭建环境与配置是在OSX系统下进行,与Linux应该区别不大,windows环境下的配置可能有出入,敬请谅解。最终实现的效果是在GitHub上只需要一个仓库,实
2017-06-27 17:09:09 2083
原创 Swift 3.0 学习笔记-5-函数
Swift 3.0 学习笔记-5-函数标签(空格分隔): iOS Swift前言: swift3.0 学习笔记主要参考苹果开发者官网The Swift Programming Language (Swift 3.1)教程 以及 Swift 中文网。 更纯粹的阅读的体验请移步至: https://www.zybuluo.com/kakadee/note/727524Swift 30 学习笔记-5
2017-04-19 10:54:57 665
原创 Swift 3.0 学习笔记-4-控制流
Swift 3.0 学习笔记-4-控制流标签(空格分隔): iOS Swift前言: swift3.0 学习笔记主要参考苹果开发者官网The Swift Programming Language (Swift 3.1)教程 以及 Swift 中文网。 更纯粹的阅读的体验请移步至: https://www.zybuluo.com/kakadee/note/726184Swift 30 学习笔记-
2017-04-18 10:33:16 521
原创 Swift 3.0 学习笔记-3-集合类型
Swift 3.0 学习笔记-3-集合类型标签(空格分隔): iOS Swift前言: swift3.0 学习笔记主要参考苹果开发者官网The Swift Programming Language (Swift 3.1)教程 以及 Swift 中文网。 更纯粹的阅读的体验请移步至: https://www.zybuluo.com/kakadee/note/721367Swift 30 学习笔记
2017-04-14 19:28:43 518
原创 Swift 3.0 学习笔记-2-字符串和Unicode
Swift 3.0 学习笔记-2-字符串和Unicode标签(空格分隔): iOS Swift声明 Swift 3.0 学习笔记主要参考苹果开发者官网[The Swift Programming Language (Swift 3.1)教程][1] 以及 [Swift 中文网][2]。Swift 30 学习笔记-2-字符串和Unicode字符串String1 字符串字面量2 初始化空字符串
2017-04-13 16:48:34 2512
原创 Swift 3.0 学习笔记-1-基础语法
Swift 3.0 学习笔记-1-基础语法标签(空格分隔): iOS Swift声明swift3.0 学习笔记主要参考苹果开发者官网The Swift Programming Language (Swift 3.1)教程 以及 Swift 中文网。1 常量和变量 (let & var)1.1 声明常量和变量let来声明常量,用var来声明变量。// 常量:let maximumNumberOfLo
2017-04-13 13:23:49 668
原创 TensorFlow的安装
TensorFlow的安装标签(空格分隔):TensorFlow1. 前提说明在公司试着学习下深度学习项目,决定使用TensorFlow框架,公司的服务器上之前有人搭建过,遇到不懂的也也可以顺便请教。至于为什么还要自己重新搭建一个,因为公司的TensorFlow可能版本较老,在运行mnist的深度学习模型不能运行,所以还得自己重新装一个。 先说明一下现有的条件吧,服务器系统为Linux有NVI
2017-02-17 12:23:29 17079 2
原创 二叉树的常见算法1
二叉树的常见算法11. 二叉树的存储结构struct TreeNode{ int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {}};2. 根据字符串创建一颗二叉树1. 描述给你一串字符串,每个节点用‘,’隔开,用‘#’代表空的字符串
2016-07-12 22:34:33 399
原创 八大排序算法
八大排序算法标签:算法 查找和排序1. 插入排序—直接插入排序 ( 稳定的 O(nlogn) )基本思想: 将一个记录插入到已排序好的有序表中,从而得到一个新,记录数增1的有序表。即:先将序列的第1个记录看成是一个有序的子序列,然后从第2个记录逐个进行插入,直至整个序列有序为止。要点:设立哨兵,作为临时存储和判断数组边界之用。如果碰见一个和插入元素相等的,那么插入元素把想插入的元素放在相等元素的
2016-06-29 19:52:38 1822 4
转载 欢迎使用CSDN-markdown编辑器
欢迎使用 Cmd Markdown 编辑阅读器#include <iostream>using namespace std;我们理解您需要更便捷更高效的工具记录思想,整理笔记、知识,并将其中承载的价值传播给他人,Cmd Markdown 是我们给出的答案 —— 我们为记录思想和分享知识提供更专业的工具。 您可以使用 Cmd Markdown: 整理知识,学习笔记 发布日记,杂文,所
2016-06-01 20:42:45 1617
转载 leetcode 41. First Missing Positive
1.题目Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbe
2016-04-15 15:06:15 304
原创 leetcode 40. Combination Sum II
1.题目Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbe
2016-04-13 16:38:20 336
原创 leetcode 39. Combination Sum
1.题目Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to
2016-04-13 16:32:51 326
原创 leetcode 38. Count and Say
1.题目The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" o
2016-04-13 15:41:50 237
原创 leetcode 37. Sudoku Solver
1.题目Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume
2016-04-13 15:15:13 298
原创 leetcode 36. Valid Sudoku
1.题目Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where emp
2016-04-13 14:59:40 253
原创 leetcode 35. Search Insert Position
1.题目Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it wer
2016-04-12 15:49:04 274
原创 leetcode 34. Search for a Range
1.题目Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity mu
2016-04-12 15:44:50 268
原创 leetcode 33. Search in Rotated Sorted Array
1.题目Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are g
2016-04-12 15:30:27 255
原创 leetcode 32. Longest Valid Parentheses
1.题目Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()
2016-04-12 14:41:29 235
原创 leetcode 31. Next Permutation
1.题目Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not pos
2016-04-12 13:37:28 251
原创 leetcode 29. Divide Two Integers
1.题目Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.在不用乘号,除号,以及取余的情况下,计算两个
2016-03-28 11:30:19 330
原创 leetcode 28. Implement strStr()
1.题目Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.给你两个字符串haystack和
2016-03-28 10:46:28 258
原创 leetcode 27. Remove Element
1.题目Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another array, you must
2016-03-27 10:09:15 322
原创 leetcode 26. Remove Duplicates from Sorted Array
1.题目Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another
2016-03-25 13:33:54 220
原创 leetcode 25. Reverse Nodes in k-Group
1.题目Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out n
2016-03-25 13:15:52 224
原创 leetcode 24. Swap Nodes in Pairs
1.题目Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algor
2016-03-25 12:10:00 197
原创 leetcode 23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.将k个有序链表合并成一个有序链表。2.思路 第一种解法,设置两个指针p1,p2分别指向两个链
2016-03-25 11:40:18 420
原创 leetcode 22. Generate Parentheses
1.题目Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((()))
2016-03-24 21:27:29 237
原创 leetcode 21. Merge Two Sorted Lists
1.题目Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.将两个有序链表合并成一个有序链
2016-03-18 22:55:48 286
原创 leetcode 20. Valid Parentheses
1.题目Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order
2016-03-17 19:50:08 230
原创 leetcode 19. Remove Nth Node From End of List
1.题目Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing t
2016-03-17 19:46:33 250
原创 leetcode 18.4Sum
1.题目Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of t
2016-03-17 19:37:48 401
原创 leetcode 17. Letter Combinations of a Phone Number
1.题目Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given be
2016-03-17 09:27:00 269
原创 leetcode 16. 3Sum Closest
1.题目Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each
2016-03-17 09:12:18 246
原创 leetcode 15. 3Sum
1.题目Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements
2016-03-16 17:20:51 284
原创 leetcode 14. Longest Common Prefix
1.题目Write a function to find the longest common prefix string amongst an array of strings.找出所有字符串的最长公共前缀。2.思路 先找前两个字符串的最长公共前缀,然后后面的字符串和这个公共前缀逐一比较,不断更新这个前缀即可(这个前缀只可能越来
2016-03-16 16:40:59 222
原创 leetcode 13. Roman to Integer
1.题目Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.和上一题相反,将罗马数字转换成整数。2.思路 罗马数字1~9: {"I", "II", "I
2016-03-16 16:31:04 294
原创 leetcode 12. Integer to Roman
1.题目Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.将整数(1-3999)转换成罗马数字。2.思路 只要知道罗马数字的是怎么表示的:1~9: {"I",
2016-03-16 16:18:55 186
原创 Leetcode 11. Container With Most Water
1.题目Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) a
2016-03-14 12:33:13 301
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人