上一页 1 2 3 4 5 6 ··· 9 下一页

2018年1月9日

收银系统算法

摘要: 设计一个收银程序 checkCashRegister() ,其把购买价格(price)作为第一个参数 , 付款金额 (cash)作为第二个参数, 和收银机中零钱 (cid) 作为第三个参数. cid 是一个二维数组,存着当前可用的找零. 当收银机中的钱不够找零时返回字符串 "Insufficient 阅读全文

posted @ 2018-01-09 21:51 angle_qqs 阅读(619) 评论(0) 推荐(0)

集合交集算法

摘要: 创建一个函数,接受两个或多个数组,返回所给数组的 对等差分(symmetric difference) (△or ⊕)数组. 给出两个集合 (如集合 A = {1, 2, 3} 和集合 B = {2, 3, 4}), 而数学术语 "对等差分" 的集合就是指由所有只在两个集合其中之一的元素组成的集合( 阅读全文

posted @ 2018-01-09 20:26 angle_qqs 阅读(2072) 评论(0) 推荐(0)

关于正则表达式

摘要: 1、 正则表达式30分钟入门教程 http://deerchao.net/tutorials/regex/regex.htm 2、w3cschool-判断电话号码 https://www.w3cschool.cn/codecamp/validate-us-telephone-numbers.html 阅读全文

posted @ 2018-01-09 17:45 angle_qqs 阅读(153) 评论(0) 推荐(0)

js学习笔记-数字转罗马数字

摘要: function convert(num) { var ans = ""; var k = Math.floor(num / 1000); var h = Math.floor((num % 1000) / 100); var t = Math.floor((num % 100) / 10); va 阅读全文

posted @ 2018-01-09 00:01 angle_qqs 阅读(1004) 评论(0) 推荐(1)

2018年1月8日

js学习笔记-数组

摘要: 1、数组方法filter(); https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/filter function destroyer(arr) { // Remove all 阅读全文

posted @ 2018-01-08 22:51 angle_qqs 阅读(120) 评论(0) 推荐(0)

js学习笔记-字符串

摘要: 1、需要注意的是,JavaScript 的字符串是不可变的(immutable),String 类定义的方法都不能改变字符串的内容。像 String.toUpperCase() 这样的方法,返回的是全新的字符串,而不是修改原始字符串。 2、字符串首字母大写的相关算法 function titleCa 阅读全文

posted @ 2018-01-08 21:59 angle_qqs 阅读(121) 评论(0) 推荐(0)

2015年10月12日

ios基础学习

摘要: action中调用函数方法别忘了冒号1. 各个视图之间的关系要分辨清楚2.MVC (Model-View-Controller). In this pattern, models keep track of your app’s data, views display your user inter... 阅读全文

posted @ 2015-10-12 13:17 angle_qqs 阅读(150) 评论(0) 推荐(0)

2014年12月1日

hdu-5119-Happy Matt Friends

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5119Happy Matt FriendsTime Limit: 6000/6000 MS (Java/Others)Memory Limit: 510000/510000 K (Java/Others)Total... 阅读全文

posted @ 2014-12-01 20:25 angle_qqs 阅读(212) 评论(0) 推荐(0)

hdu-5122-K.Bro Sorting

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5122K.Bro SortingTime Limit: 2000/2000 MS (Java/Others)Memory Limit: 512000/512000 K (Java/Others)Total Subm... 阅读全文

posted @ 2014-12-01 20:23 angle_qqs 阅读(276) 评论(0) 推荐(0)

hdu-5120-Intersection

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5120IntersectionTime Limit: 4000/4000 MS (Java/Others)Memory Limit: 512000/512000 K (Java/Others)Total Submi... 阅读全文

posted @ 2014-12-01 20:21 angle_qqs 阅读(273) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 9 下一页

导航