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-05-21 10:38:00
阅读次数:
54
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the ...
分类:
其他好文 时间:
2020-05-21 10:33:22
阅读次数:
54
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solu ...
分类:
其他好文 时间:
2020-05-20 12:40:43
阅读次数:
58
I have two components. I want to call a method of the first component from the second component. How can I do it? Here is my code. First Component cla ...
分类:
Web程序 时间:
2020-05-20 10:49:28
阅读次数:
143
本文主要阐述基于 "python镜像" 和mysql镜像,利用docker容器搭建python3的系统环境,并运行简单的python程序 一.Python镜像的构造文件、Python程序代码 :one: python镜像的 ps:由于直接pip速度较慢,这里使用了清华源镜像加速 :two: 记录py ...
分类:
编程语言 时间:
2020-05-19 22:36:01
阅读次数:
1195
题目 Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 i ...
分类:
其他好文 时间:
2020-05-19 01:04:00
阅读次数:
58
You are given an undirected graph without self-loops or multiple edges which consists of nn vertices and mm edges. Also you are given three integers n ...
分类:
其他好文 时间:
2020-05-19 00:53:03
阅读次数:
67
JSON (JavaScript Object Notation) is most widely used data format for data interchange on the web. This data interchange can happen between two comput ...
分类:
Web程序 时间:
2020-05-19 00:31:34
阅读次数:
66
题1:两数之和 II - 输入有序数组(Two Sum II - Input array is sorted) Leetcode题号:167 难度:Easy 链接:https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/ 题 ...
分类:
编程语言 时间:
2020-05-18 22:54:30
阅读次数:
72
Description Given an integer array , find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Examp ...
分类:
其他好文 时间:
2020-05-18 22:47:34
阅读次数:
65