摘要: 题目描述 Given an integer, write a function to determine if it is a power of three. 题目大意 判断给的整数是否是3的乘方数。 (尽量不要用循环和递归来完成算法) 示例 E1 Input: 27 Output: true E2 阅读全文
posted @ 2019-07-15 15:20 你好哇傻小妞 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... 题目大意 将数组中的数字重新排序,满足nums[0] < nums[1] > nums[2] < num 阅读全文
posted @ 2019-07-15 11:26 你好哇傻小妞 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the tw 阅读全文
posted @ 2019-07-15 10:53 你好哇傻小妞 阅读(160) 评论(0) 推荐(0) 编辑