
codewars编程题目
许许盛
大家好,我不是运维~
展开
-
编程题目:格式化名字字符串
题目: Format a string of names like ‘Bart, Lisa & Maggie’来源:https://www.codewars.com/kata/format-a-string-of-names-like-bart-lisa-and-maggie/javascript描述: + Given:an array containing hashes of names +原创 2016-07-14 15:39:56 · 894 阅读 · 0 评论 -
编程题目:The Coupon Code
**题目:**The Coupon Code地址:https://www.codewars.com/kata/the-coupon-code/javascript分析: 题目本身并不难,就是一个字符串的比较以及时间的比较,这里的时间是以字符串的形式传入的,没有办法直接比较,所以考虑转换为毫秒的形式来进行比较。1. 方法一function checkCoupon(enteredCode, corre原创 2016-07-14 16:51:12 · 761 阅读 · 0 评论