题目如下: 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
题目如下: 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
题目如下: 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
题目如下: 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
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
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
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
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
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