码迷,mamicode.com
首页 >  
搜索关键字:until    ( 1173个结果
Lua词汇约定
Lua的标识符包含数字,字母以及下划线,数字不能作为标识符的开头。 and break do else elseif end false for function goto if in local nil not or repeat return then true until while 以上不能 ...
分类:其他好文   时间:2016-12-07 23:16:20    阅读次数:211
如何理解背包问题
问题 假定背包的最大容量为W,N件物品,每件物品都有自己的价值和重量,将物品放入背包中使得背包内物品的总价值最大。 问题 假定背包的最大容量为W,N件物品,每件物品都有自己的价值和重量,将物品放入背包中使得背包内物品的总价值最大。 背包问题wiki 可以想象这样一个场景——小偷在屋子里偷东西,他带着 ...
分类:其他好文   时间:2016-12-03 21:42:31    阅读次数:379
作业5、6
作业5: 1.(1) . 1.(2) 2. 作业6: 1.(1) 2.(2) 2.(1) 2.(2) 3. 打开卡片文件; 读卡片; A:=0; 处理前置部分 iter until 出现K1卡; 处理非K1卡 seq A:=A+1 读卡片; 处理非K1卡 end; 处理前置部分 end; 打印起始卡 ...
分类:其他好文   时间:2016-12-01 14:34:39    阅读次数:314
Java并发之CountDownLatch
CountDownLatch是Java concurrent包下的一个同步工具。它可以让一个(或多个)线程等待,直到其他线程中的某些操作完成。 本质上是一个信号量,我们把它比作一个有N个插销的大门,它把等待(调用await)的线程挡住了, 直到其他线程把插销去完了(调用countDown减到0),这 ...
分类:编程语言   时间:2016-11-30 22:16:26    阅读次数:157
wx.Dialog
wx.Dialog A dialog box is a window with a title bar and sometimes a system menu, which can be moved around the screen. It can contain controls and oth ...
分类:其他好文   时间:2016-11-26 14:27:19    阅读次数:185
1.16字段分隔符和迭代器
内部字段分隔符(Internal Field Separator,IFS)是shell脚本编程的一个重要概念。下面将讨论把单个数据流划分成不同数据元素的定界符(delimiter),内部字段分隔符是用于特定用途的定界符。IFS是存储定界符的环境变量。它是当前shell环境默认使用的默认定界字符串。 ...
分类:其他好文   时间:2016-11-24 15:09:25    阅读次数:112
Leetcode: Integer Break
O(N^2)解法: DP dp[i] represent the maximum product of breaking up integer i O(N)解法: the best factor is 3. we keep breaking n into 3's until n gets small ...
分类:其他好文   时间:2016-11-24 09:29:32    阅读次数:202
Oracle Recommended Patches -- "Oracle JavaVM Component Database PSU" (OJVM PSU) Patches (文档 ID 1929745.1)
From: https://support.oracle.com What is "Oracle JavaVM Component Database PSU" ? Oracle JavaVM Component Database PSU is released as part of the Crit ...
分类:数据库   时间:2016-11-22 01:39:25    阅读次数:458
5.while 脚本练习
脚本编程: 顺序结构 选择结构 if, case 循环结构 for,while,until while循环:适用于循环次数未知的场景 语法: while 练习: 1. 计算1到100正整数和 总结一下整型变量自增的方法: 练习2: 写 一个脚本,如果输入小写字母自动转换成大写显示 ,quit 退出 ...
分类:其他好文   时间:2016-11-21 19:17:27    阅读次数:139
366. Find Leaves of Binary Tree
Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Example:Given bi ...
分类:其他好文   时间:2016-11-20 07:11:28    阅读次数:198
1173条   上一页 1 ... 70 71 72 73 74 ... 118 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!