https://leetcode.com/problems/binary-tree-inorder-traversal/ Given a binary tree, return the inorder traversal of its nodes' values. Example: 代码: 二叉树 ...
分类:
其他好文 时间:
2018-12-10 20:50:04
阅读次数:
179
Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any ...
分类:
其他好文 时间:
2018-12-10 13:50:35
阅读次数:
143
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 ...
分类:
其他好文 时间:
2018-12-09 16:36:54
阅读次数:
140
第一部分 理论部分 ? JAR文件? 应用程序首选项存储? Java Web Start JAR文件: 1.Java程序的打包:程序编译完成后,程序员将.class文件压缩打包为.jar文件后,GUI界面程序就可以直接双击图标运行。 2.jar文件(Java归档)既可以包含类文件,也可包含诸如图像和 ...
分类:
编程语言 时间:
2018-12-09 16:29:40
阅读次数:
123
Problem Description “ 改革春风吹满地, 不会AC没关系; 实在不行回老家, 还有一亩三分地。 谢谢!(乐队奏乐)” 话说部分学生心态极好,每天就知道游戏,这次考试如此简单的题目,也是云里雾里,而且,还竟然来这么几句打油诗。 好呀,老师的责任就是帮你解决问题,既然想种田,那就分你 ...
分类:
其他好文 时间:
2018-12-09 16:13:23
阅读次数:
217
#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; inline i... ...
分类:
其他好文 时间:
2018-12-09 13:57:32
阅读次数:
172
1、启动程序后,,让用户输入现金,然后打印商品列表2、允许用户根据商品编号购买商品3、用户选择商品后,检测余额是否够,够就直接扣款,不够就提醒4、可随时退出,退出时,打印已购买商品和余额这个题要用到:1.input 2.购物车设为字典,买一件添加一件 3.for打印商品列表4.while 可以持续添... ...
分类:
编程语言 时间:
2018-12-09 10:36:49
阅读次数:
169
目前越来越流行,常应用于运维自动化、云计算、虚拟化、机器智能等领域;国内大公司BAT,京东,网易等都会用到。国外的YouTube、Google、Yahoo甚至NASA也都使用Python。Python可以应用于Linux、Unix(苹果)、Windows;Linux自带Python;目前centos7自带的是Python2.7二、Python的下载与安装(示例:Windows7)1、Python官
分类:
编程语言 时间:
2018-12-08 23:55:42
阅读次数:
353
求平均值的函数reduce_meanaxis为1表示求行axis为0表示求列>>>xxx=tf.constant([[1.,10.],[3.,30.]])>>>sess.run(xxx)array([[1.,10.],[3.,30.]],dtype=float32)>>>mymean=tf.reduce_mean(xxx,0)>>&
分类:
其他好文 时间:
2018-12-08 23:43:58
阅读次数:
611
转:http://www.cnblogs.com/swordfall/p/9517988.html 常见分类模型与算法 1. KNN分类算法原理及应用 1.1 KNN概述 K最近邻(k-Nearest Neighbor,KNN)分类算法是最简单的机器学习算法。 KNN算法的指导思想是“近朱者赤,近墨 ...
分类:
编程语言 时间:
2018-12-08 19:41:03
阅读次数:
233