package LeetCode_1064 /** * 1064. Fixed Point * Lock by LeetCode * Given an array A of distinct integers sorted in ascending order, return the smalles ...
分类:
其他好文 时间:
2020-03-31 14:06:29
阅读次数:
69
题目 Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between and is a ...
分类:
其他好文 时间:
2020-03-31 01:13:11
阅读次数:
88
首先在主界面设置按钮点击事件,点击按钮后就跳转到计算活动中,此时用到了Bundle用来传递多个参数(与intent对象配合使用,是由一种活动之间传参的方法) btnHight.setOnClickListener(new View.OnClickListener() { @Override publ ...
分类:
移动开发 时间:
2020-03-30 23:12:20
阅读次数:
92
一、map() import pandas as pd import numpy as np df = pd.DataFrame({'key1' : ['a', 'a', 'b', 'b', 'a'], 'key2' : ['one', 'two', 'one', 'two', 'one'], 'd ...
分类:
移动开发 时间:
2020-03-30 13:15:36
阅读次数:
97
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi ...
分类:
其他好文 时间:
2020-03-30 12:40:30
阅读次数:
66
两个数组的交集。题目即是题意,例子, Example 1: Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2] Example 2: Input: nums1 = [4,9,5], nums2 = [9,4,9,8,4] Output: [9,4] ...
分类:
其他好文 时间:
2020-03-30 09:31:09
阅读次数:
62
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
分类:
其他好文 时间:
2020-03-29 21:16:05
阅读次数:
58
题目 Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the ...
分类:
其他好文 时间:
2020-03-29 19:40:21
阅读次数:
65
There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor ...
分类:
其他好文 时间:
2020-03-29 12:34:44
阅读次数:
57
The next lecture in a high school requires two topics to be discussed. The ii -th topic is interesting by aiai units for the teacher and by bibi units ...
分类:
其他好文 时间:
2020-03-29 01:44:16
阅读次数:
280