程序媛詹妮弗
终身学习
摘要: Design a class which receives a list of words in the constructor, and implements a method that takes two words word1 and word2 and return the shortest 阅读全文
posted @ 2018-06-07 02:10 程序媛詹妮弗 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. Example:Assume that words = ["p 阅读全文
posted @ 2018-06-07 01:43 程序媛詹妮弗 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Example 2: Example 3: 题意: 求幂 思路: 指数n 大于0 返回 power(x, n) 小于0 返回 1.0 / po 阅读全文
posted @ 2018-06-07 01:21 程序媛詹妮弗 阅读(148) 评论(0) 推荐(0) 编辑