摘要: Instruction 看题就要看一会,大致意思就是:比较数组a是否和数组b拥有相同的元素。这个‘相同’是指不论顺序,数组a中数字的平方一一对应数组b中的数字。 一开始我的解决方案是这样的: 但是报错了。因为: 1,arr2.indexOf(s)这里没处理好,当找到的下标为0时,会返回false。 阅读全文
posted @ 2017-06-20 15:12 小懒惰的猪 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Instruction: x Simple, given a string of words, return the length of the shortest word(s). String will never be empty and you do not need to account f 阅读全文
posted @ 2017-06-20 15:02 小懒惰的猪 阅读(448) 评论(0) 推荐(0) 编辑