码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
【leetcode】1466. Reorder Routes to Make All Paths Lead to the City Zero
题目如下: There are n cities numbered from 0 to n-1 and n-1 roads such that there is only one way to travel between two different cities (this network for ...
分类:其他好文   时间:2020-06-22 15:47:54    阅读次数:60
【leetcode】1464. Maximum Product of Two Elements in an Array
题目如下: Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*(nums[j]- ...
分类:其他好文   时间:2020-06-22 15:42:18    阅读次数:67
【leetcode】1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
题目如下: Given a rectangular cake with height h and width w, and two arrays of integers horizontalCuts and verticalCuts where horizontalCuts[i] is the di ...
分类:其他好文   时间:2020-06-22 15:31:47    阅读次数:45
【leetcode】1481. Least Number of Unique Integers after K Removals
题目如下: Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: a ...
分类:其他好文   时间:2020-06-22 15:12:41    阅读次数:60
小程序 拼接变量名后取值
let obj = { obj1 :{ say:'hi1' }, obj2 :{ say:'hi2' } } let one = obj1 let two = say // 等于 obj.obj1.say // `` 是ESC下 TAB上的哪个键 console.log( obj[`${one}`] ...
分类:微信   时间:2020-06-22 13:13:20    阅读次数:122
leetcode 368. Largest Divisible Subset
Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: Si % Sj = 0 or ...
分类:其他好文   时间:2020-06-21 22:53:58    阅读次数:60
[LeetCode] 29. Divide Two Integers
Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi ...
分类:其他好文   时间:2020-06-21 19:56:30    阅读次数:47
166. Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating ...
分类:其他好文   时间:2020-06-21 10:09:51    阅读次数:35
0021. Merge Two Sorted Lists (E)
Merge Two Sorted Lists (E) 题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of ...
分类:其他好文   时间:2020-06-21 09:38:24    阅读次数:51
0018. 4Sum (M)
4Sum (M) 题目 Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b+ c + d = target? Find a ...
分类:其他好文   时间:2020-06-21 09:18:37    阅读次数:40
17573条   上一页 1 ... 26 27 28 29 30 ... 1758 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!