leetcode
小猫咪可馋了
以梦为马 不负韶华
展开
-
[leetcode]1390. 四因数
【题目】 给你一个整数数组 nums,请你返回该数组中恰有四个因数的这些整数的各因数之和。 如果数组中不存在满足题意的整数,则返回 0 。 示例: 输入:nums = [21,4,7] 输出:32 解释: 21 有 4 个因数:1, 3, 7, 21 4 有 3 个因数:1, 2, 4 7 有 2 个因数:1, 7 答案仅为 21 的所有因数的和。 提示: 1 <= n...原创 2020-05-01 14:36:10 · 270 阅读 · 0 评论 -
[leetcode] - 1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same ...原创 2019-02-27 16:10:47 · 97 阅读 · 0 评论 -
[leetcode] 9. Palindrome Number
Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as forward. Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false Expl...原创 2019-03-11 16:25:44 · 75 阅读 · 0 评论