摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文