摘要: Question 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 3w 阅读全文
posted @ 2017-06-26 17:32 清水汪汪 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Question Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally id 阅读全文
posted @ 2017-06-26 16:42 清水汪汪 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Question Given a binary tree, determine if it is height balanced. For this problem, a height balanced binary tree is defined as a binary tree in which 阅读全文
posted @ 2017-06-26 16:30 清水汪汪 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Question Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a 阅读全文
posted @ 2017-06-26 15:26 清水汪汪 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Question Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. F 阅读全文
posted @ 2017-06-26 15:11 清水汪汪 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 所谓回文字符串,就是一个字符串,从左到右读和从右到左读是完全一样的。比如"level" 、 “aaabbaaa” 递归 非递归 C++ bool isPalindrome(string s, int start, int end) { while (start 阅读全文
posted @ 2017-06-26 15:06 清水汪汪 阅读(457) 评论(0) 推荐(0) 编辑
摘要: Question There are N gas stations along a circular route, where the amount of gas at station i isgas[i]. You have a car with an unlimited gas tank and 阅读全文
posted @ 2017-06-26 13:57 清水汪汪 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 交叉熵代价函数(Cross entropy cost function)是用来衡量人工神经网络(ANN)的预测值与实际值的一种方式。与二次代价函数相比,它能更有效地促进ANN的训练。在介绍交叉熵代价函数之前,本文先简要介绍二次代价函数,以及其存在的不足。 1. 二次代价函数的不足 ANN的设计目的之 阅读全文
posted @ 2017-06-26 10:42 清水汪汪 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 1、均方根值(RMS)也称作为效值,它的计算方法是先平方、再平均、然后开方。 2、均方根误差,它是观测值与真值偏差的平方和观测次数n比值的平方根,在实际测量中,观测次数n总是有限的,真值只能用最可信赖(最佳)值来代替.方根误差对一组测量中的特大或特小误差反映非常敏感,所以,均方根误差能够很好地反映出 阅读全文
posted @ 2017-06-26 10:29 清水汪汪 阅读(54431) 评论(2) 推荐(2) 编辑