在写BFS的时候,经常会用到queue来标记需要验证的点(即由上一层而关联的各个点,就是所谓的灰色的点。黑色的点是queue最上面的那个点,就是正在被process会被poll出来那个)。然后辅助一个hash来记录是否已经visit过这个node。 ...
分类:
其他好文 时间:
2017-03-17 12:26:35
阅读次数:
194
利用DNS安装Grid Infrastructure时,安装到两个节点互信后,点击NEXT后出现下面这个错误: 在网上搜了,有的说在各个节点的oracle用户下的.bash_profile添加export ORACLE_HOSTNAME=各自的主机名; 比如两个节点的主机名node1,node2;分... ...
分类:
数据库 时间:
2017-03-15 11:49:35
阅读次数:
411
题目: Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library fun ...
分类:
其他好文 时间:
2017-03-13 11:20:52
阅读次数:
180
Description: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. Example: 思路分析: 1.这 ...
分类:
其他好文 时间:
2017-03-12 01:19:57
阅读次数:
131
题目链接: https://leetcode.com/problems/valid-sudoku/?tab=Description 给出一个二维数组,数组大小为数独的大小,即9*9 其中,未填入数字的数组值为’.’ 判断当前所给已知数组中所填的数字是否合法。 数独合法性判断: 1. 满足每一行的数字 ...
分类:
其他好文 时间:
2017-03-11 15:33:30
阅读次数:
154
demo下载链接http://pan.baidu.com/s/1hrDCC3y /* Jquery 表单验证插件 janchie 2010.1 janchie@163.com 1.01版 */ (function($){ $.fn.extend({ valid:function(){ if( ! $ ...
分类:
Web程序 时间:
2017-03-08 12:46:44
阅读次数:
279
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the ...
分类:
编程语言 时间:
2017-03-05 23:46:31
阅读次数:
186
https://docs.microsoft.com/zh-cn/azure/iot-hub/iot-hub-java-java-getstarted 在IDEA中执行上述的代码,会出现下面的报错信息: 通过IE访问接口的网址:https://xxx.azure-devices.cn/devices ...
分类:
其他好文 时间:
2017-03-04 19:59:26
阅读次数:
407
如果border_mode选择为same,那么卷积操作的输入和输出尺寸会保持一致。如果选择valid,那卷积过后,尺寸会变小。 这是keras中的定义: 卷积的操作中,如果使用same,或valid这种模式,有时候会不灵活。必要的时候,需要我们自己去进行补零操作,庆幸的是keras的补零操作是非常灵 ...
分类:
其他好文 时间:
2017-02-26 17:03:54
阅读次数:
403