- 博客(41)
- 资源 (7)
- 收藏
- 关注
原创 【一天一道LeetCode】#109. Convert Sorted List to Binary Search Tree
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a singly linked list where elements are sorted in ascending order, convert it to a height ba
2016-06-30 21:02:54 1656
原创 【一天一道LeetCode】#108. Convert Sorted Array to Binary Search Tree
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
2016-06-30 21:01:16 1727
原创 【一天一道LeetCode】#107. Binary Tree Level Order Traversal II
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目来源: https://leetcode.com/problems/binary-tree-level-order-traversal-ii/ Given a binary tree, return
2016-06-29 15:07:41 1723
原创 【一天一道LeetCode】#106. Construct Binary Tree from Inorder and Postorder Traversall
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目来源: https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Given a binary tree, re
2016-06-29 14:42:59 1790
原创 【一天一道LeetCode】#105. Construct Binary Tree from Preorder and Inorder Traversal
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目来源:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ Given p
2016-06-28 22:05:02 2326
原创 【一天一道LeetCode】#104. Maximum Depth of Binary Tree
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目来源:https://leetcode.com/problems/maximum-depth-of-binary-tree/ Given a binary tree, find its maximu
2016-06-28 20:17:22 1875
原创 【一天一道LeetCode】#103. Binary Tree Zigzag Level Order Traversal
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目来源: https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Given a binary tree, re
2016-06-28 12:59:30 1391
原创 【一天一道LeetCode】#102. Binary Tree Level Order Traversal
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目来源: https://leetcode.com/problems/binary-tree-level-order-traversal/ Given a binary tree, return th
2016-06-26 20:34:37 2127
原创 【一天一道LeetCode】#101. Symmetric Tree
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
2016-06-25 22:40:34 568
原创 【一天一道LeetCode】#100. Same Tree(100题大关)
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given two binary trees, write a function to check if they are equal or not. Two binary trees
2016-06-24 21:35:55 2005
原创 【一天一道LeetCode】#99. Recover Binary Search Tree
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without c
2016-06-24 21:28:48 1843
原创 【一天一道LeetCode】#98. Validate Binary Search Tree
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is def
2016-06-22 21:37:42 1760
原创 【一天一道LeetCode】#97. Interleaving String
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,
2016-06-22 16:49:38 708
原创 【一天一道LeetCode】#96. Unique Binary Search Trees
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given n, how many structurally unique BST’s (binary search trees) that store values 1…n? For ex
2016-06-19 14:53:20 1506
原创 【一天一道LeetCode】#95. Unique Binary Search Trees II
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given an integer n, generate all structurally unique BST’s (binary search trees) that store values
2016-06-17 22:21:28 2369
原创 【一天一道LeetCode】#94. Binary Tree Inorder Traversal
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a binary tree, return the inorder traversal of its nodes’ values. For example: Given
2016-06-16 22:27:43 528
原创 【一天一道LeetCode】#93. Restore IP Addresses
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a string containing only digits, restore it by returning all possible valid IP address combi
2016-06-15 23:49:01 1709
原创 【一天一道LeetCode】#92. Reverse Linked List II
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: G
2016-06-14 21:33:48 1823
原创 【一天一道LeetCode】#91. Decode Ways
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 A message containing letters from A-Z is being encoded to numbers using the following mapping:
2016-06-13 23:38:06 1249
原创 【一天一道LeetCode】#90. Subsets II
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a collection of integers that might contain duplicates, nums, return all possible subsets.
2016-06-12 19:25:56 1610
原创 【一天一道LeetCode】#89. Gray Code
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 The gray code is a binary numeral system where two successive values differ in only one bit.
2016-06-11 17:19:18 1710
原创 【一天一道LeetCode】#88. Merge Sorted Array
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
2016-06-11 16:56:34 1664
原创 【一天一道LeetCode】#87. Scramble String
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substr
2016-06-10 20:48:38 2869
原创 【一天一道LeetCode】#86. Partition List
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a linked list and a value x, partition it such that all nodes less than x come before nodes
2016-06-09 10:55:07 2083
原创 【一天一道LeetCode】#85. Maximal Rectangle
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing all ones a
2016-06-09 00:22:37 2436
原创 【一天一道LeetCode】#84. Largest Rectangle in Histogram
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given n non-negative integers representing the histogram’s bar height where the width of each bar
2016-06-06 22:51:58 995
原创 【一天一道LeetCode】#83. Remove Duplicates from Sorted List
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a sorted linked list, delete all duplicates such that each element appear only once. Fo
2016-06-06 15:52:58 1173
原创 【一天一道LeetCode】#82. Remove Duplicates from Sorted List II
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct nu
2016-06-05 15:00:01 2016
原创 【一天一道LeetCode】#130. Surrounded Regions
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a 2D board containing ‘X’ and ‘O’, capture all regions surrounded by ‘X’. A region is c
2016-06-05 12:57:02 2118
原创 【数据结构与算法】深入浅出递归和迭代的通用转换思想
递归和递归的深入浅出 一般来说,能用迭代的地方就不要用递归!理论上讲,所有的递归和迭代之间都能相互转换!(一)何为迭代?首先我们来看下面这段简单的代码:int sum(int n ){ int sum =0; for(int i = 1 ; i <= n;i++) sum+=n;//求解1~n的和 return sum;}从上述例子中,从1一直加到n,每一次的和都
2016-06-05 11:36:10 9949 3
原创 【一天一道LeetCode】#81. Search in Rotated Sorted Array II
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Follow up for “Search in Rotated Sorted Array”: What if duplicates are allowed? Would this
2016-06-04 21:26:01 2636
原创 【一天一道LeetCode】#80. Remove Duplicates from Sorted Array II
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice? For examp
2016-06-04 15:44:02 2163
原创 【一天一道LeetCode】#79. Word Search
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed
2016-06-03 22:15:21 2797
原创 【一天一道LeetCode】#78. Subsets
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given a set of distinct integers, nums, return all possible subsets. Note:Elements in a subse
2016-06-02 17:04:21 2232
原创 【一天一道LeetCode】#77. Combinations
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处(一)题目 Given two integers n and k, return all possible combinations of k numbers out of 1 … n. For e
2016-06-02 16:33:09 2496 2
原创 【计算机网络 第五版】阅读笔记之五:运输层
第五章 运输层1.运输层的功能:为应用进程之间提供端到端的逻辑通信,为应用层提供通信服务。(网络层是为主机到主机之间提供逻辑通信) 2.运输层的两个重要协议:用户数据包协议UDP和传输控制协议TCP 3.运输层的端口(协议端口号) (1) 软件端口时是应用层的各种协议进程与运输实体进行层间交互的一种地址 (2) 服务器端口号:熟知或系统端口号0~1023,登记端口号1024~49151
2016-06-02 16:01:29 5775
原创 【计算机网络 第五版】阅读笔记之四:网络层
第四章 网络层1.网络层的两种服务:虚电路服务(可靠性由网络保证)和数据报服务(可靠性由用户主机保证)2.网际协议(1)地址解析协议ARP和逆地址解析协议(RARP):位于IP协议之下,IP使用这两个协议解析到物理地址(2)网际控制报文协议(ICMP)和网际组管理协议(IGMP):位于IP协议之上,使用IP协议 Tips:这里补充一下各个层的一些相关协议:应用层协议:HTTP,FTP,SMTP;
2016-06-02 16:00:15 6604
原创 【计算机网络 第五版】阅读笔记之三:数据链路层
第三章:数据链路层1.数据链路层使用的信道:点对点信道和广播信道2.数据链路和帧:(1)链路(物理链路):一个结点到相邻结点的一段物理线路,中间没有任何转换结点。(2)数据链路(逻辑链路):由物理链路加上必要的通信协议构成。通常采用网络适配器来实现。(3)帧:点对点信道的数据链路层的协议数据单元。3.数据链路层的三大基本功能3.1 封装成帧:在一端数据的首部和尾部分别加上帧开始符(SOH 01)和帧
2016-06-02 15:54:45 2148 2
原创 【计算机网络 第五版】阅读笔记之二:物理层
第二章:物理层1.物理层特性:(1)机械:指明接口所用的接线器的形状和尺寸、引线数目和排列、固定和锁定装置等等(2)电气:指明在接口电缆的各条线上出现的电压的范围(3)功能:指明某条线上出现的某一电平的电压表示何种意义(4)过程:指明对于不同功能的各种可能事件的出现顺序2.传输媒体:导向传输媒体和非导向传输媒体(1)导向传输媒体:双绞线,同轴电缆,光缆(2)非导向传输媒体:无线电波通信,短波通信(电
2016-06-02 15:52:44 1258
原创 【计算机网络 第五版】阅读笔记之一:概述
第一章 概述1.因特网的组成边缘部分:由所有连接在因特网上的主机组成核心部分:由大量网络和连接这些网络的路由器组成2.计算机之间的通信方式客户服务器端方式(C/S模式):客户端是服务请求方,服务器端是服务提供方对等方式(P2P模式):平等,对等连接通信,每一个主机既是客户又是服务器。3.电路交换,分组交换和报文交换3.1 电路交换:建立连接(占用通信资源)->通话(一直占用)->释放连接(释放通信资
2016-06-02 15:51:06 1813
【Visual C++】游戏编程代码\【Visual C++】游戏编程学习笔记之九:回合制游戏demo(剑侠客VS巡游天神)
2015-03-21
【Visual C++】游戏编程代码\【Visual C++】游戏编程开发笔记六:多背景循环动画
2015-03-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人