上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: C++ 描述: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 9 using namespace std;10 11 class NaiveBayes {12 public... 阅读全文
posted @ 2016-01-13 16:41 skycore 阅读(199) 评论(0) 推荐(0)
摘要: 感知机具体说明:见《统计学习方法第二章》。实现(scikit-learn):数据集 1 import numpy as np 2 import matplotlib.pyplot as plt 3 from sklearn.linear_model import perceptron 4 5 # ... 阅读全文
posted @ 2016-01-03 13:08 skycore 阅读(547) 评论(0) 推荐(0)
摘要: 原文地址:https://en.wikipedia.org/wiki/K-D-B-tree计算机科学中,KDB-tree(k-dimensionalB-tree)是一个用于划分K维搜索空间的树形结构,KDB-tree的目的是提供平衡KD树的搜索效率,同时提供B树面向块的存储来优化外部内存的访问。介绍... 阅读全文
posted @ 2016-01-01 13:45 skycore 阅读(3547) 评论(0) 推荐(0)
摘要: 题目描述:(链接)Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the... 阅读全文
posted @ 2015-12-25 22:57 skycore 阅读(219) 评论(0) 推荐(0)
摘要: 题目描述:(链接)Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are... 阅读全文
posted @ 2015-12-21 10:28 skycore 阅读(142) 评论(0) 推荐(0)
摘要: 题目描述:(链接)Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each ne... 阅读全文
posted @ 2015-12-20 11:54 skycore 阅读(144) 评论(0) 推荐(0)
摘要: 题目描述:(链接)Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3... 阅读全文
posted @ 2015-12-20 11:32 skycore 阅读(139) 评论(0) 推荐(0)
摘要: 题目描述:(链接)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see b... 阅读全文
posted @ 2015-12-19 15:14 skycore 阅读(137) 评论(0) 推荐(0)
摘要: 题目解析:(链接)Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree... 阅读全文
posted @ 2015-12-19 14:41 skycore 阅读(140) 评论(0) 推荐(0)
摘要: 题目描述:(链接)Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the n... 阅读全文
posted @ 2015-12-17 22:27 skycore 阅读(161) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页