注意where限制,防止用户输入struct或其它primitive类型 ...
分类:
其他好文 时间:
2020-03-02 09:14:50
阅读次数:
87
ArrayList和LinkedList都是实现了List接口的容器类,用于存储一些列引用对象。只观察功能,它们都可以对元素进行增删改查操作,那它们的区别有哪些呢?下面来说一下 实现原理 ArrayList是基于数组结构实现的,LinkedList是基于链表结构实现的。 ArrayList的源码: ...
分类:
其他好文 时间:
2020-03-02 01:04:42
阅读次数:
89
题目 This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed g ...
分类:
编程语言 时间:
2020-03-01 20:12:25
阅读次数:
90
原因:在初始化配置Git用户信息时,设置了用户密码 解决方式:重置用户密码,并设置为空 $ ssh-keygen -p Enter file in which the key is (/c/Users/xxx/.ssh/id_rsa): (直接Enter)Enter old passphrase:( ...
分类:
其他好文 时间:
2020-03-01 10:43:43
阅读次数:
126
108. Convert Sorted Array to Binary Search Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this ...
分类:
编程语言 时间:
2020-02-29 22:03:51
阅读次数:
78
题目 In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path whi ...
分类:
其他好文 时间:
2020-02-29 20:51:39
阅读次数:
104
CS 2033Multimedia and Communications IIAssignment 2Hometown WebpageOverviewThe city in which you grew up, or lived for a significant period of time, i ...
分类:
其他好文 时间:
2020-02-29 18:47:42
阅读次数:
71
原题链接在这里:https://leetcode.com/problems/confusing-number/ 题目: Given a number N, return true if and only if it is a confusing number, which satisfies the ...
分类:
其他好文 时间:
2020-02-29 13:10:38
阅读次数:
42
最多有K个不同字符的最长子串。题意就不解释了,参见159题。例子, Example 1: Input: s = "eceba", k = 2 Output: 3 Explanation: T is "ece" which its length is 3. Example 2: Input: s = ...
分类:
其他好文 时间:
2020-02-28 15:37:15
阅读次数:
51
最多有两个不同字符的最长子串。题意是给一个字符串,请返回一个最长子串的长度。子串的要求是最多只有两个不同的字母。例子, Example 1: Input: "eceba" Output: 3 Explanation: tis "ece" which its length is 3. Example ...
分类:
其他好文 时间:
2020-02-28 13:52:03
阅读次数:
68