- 博客(13)
- 资源 (11)
- 收藏
- 关注
原创 【LeetCode从零单刷】Sort Colors
题目:Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the intege
2015-09-21 19:38:17 729
原创 【LeetCode从零单刷】Reverse Linked List
题目:Reverse a singly linked list.解答:反转单链表。很常见的一道题目。思路暂时想到两种,一种是浪费一些空间,重新构造一个反转的链表,代码是这种;第二种是每次单独保存原链表节点,使得其 next 指针指向原先的上一个节点。主要我想说的是代码上的问题:关于 struct, class 类型的指针。使用指针之前,切记要分配内存空间!!
2015-09-16 21:37:21 658
原创 【LeetCode从零单刷】Binary Tree Postorder Traversal
从今天起,模仿《从零单排》系列,菜鸡单刷LeetCode!
2015-09-16 14:07:49 676
原创 Andrew Ng Machine Learning 专题【Machine Learning Advice】
此文是斯坦福大学,机器学习界 superstar — Andrew Ng 所开设的 Coursera 课程:Machine Learning 的课程笔记。力求简洁,仅代表本人观点,不足之处希望大家探讨。 课程网址:https://www.coursera.org/learn/machine-learning/home/welcome
2015-09-16 13:41:03 1630
原创 【LeetCode从零单刷】Add Digits
题目:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 h
2015-09-15 09:18:57 690
原创 【LeetCode从零单刷】Gray Code
题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total number of bits in the code, print the sequenc
2015-09-13 22:18:12 735
原创 【LeetCode从零单刷】Lowest Common Ancestor of a Binary Search Tree
题目:Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to the definition of LCA on Wikipedia: “The lowest common ancestor is def
2015-09-13 22:01:03 708
原创 【LeetCode从零单刷】Convert Sorted Array to Binary Search Tree
题目:Given an array where elements are sorted in ascending order, convert it to a height balanced BST.解答:解决树的问题,一般都会涉及到递归。class Solution {public: TreeNode* sortedArrayToBST(vector& nums) {
2015-09-13 21:48:41 561
原创 【LeetCode从零单刷】Single Number III
题目:Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.For example:Given n
2015-09-13 21:29:19 670
原创 【LeetCode从零单刷】Valid Anagram
题目:Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s = "rat", t = "car", return false.解答:不要被各种类型的
2015-09-13 19:45:59 617
原创 Andrew Ng Machine Learning 专题【Neural Networks】下
此文是斯坦福大学,机器学习界 superstar — Andrew Ng 所开设的 Coursera 课程:Machine Learning 的课程笔记。力求简洁,仅代表本人观点,不足之处希望大家探讨。 课程网址:https://www.coursera.org/learn/machine-learning/home/welcomeWeek 1: Introduction 笔记:http://bl
2015-09-13 11:36:57 3190 1
原创 Andrew Ng Machine Learning 专题【Neural Networks】上
此文是斯坦福大学,机器学习界 superstar — Andrew Ng 所开设的 Coursera 课程:Machine Learning 的课程笔记。力求简洁,仅代表本人观点,不足之处希望大家探讨。 课程网址:https://www.coursera.org/learn/machine-learning/home/welcome
2015-09-01 09:07:47 3076 2
SPH 流体动画源代码
2014-11-24
邮箱地址列表语法分析(附实验报告)
2013-01-05
邮箱地址列表词法分析(附实验报告)
2013-01-04
邮箱地址列表词法分析(含实验报告)
2013-01-04
计算机网络(谢希仁著,第五版)
2012-09-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人