Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123Output: 321Example 2: Input: -123Output: -321Example 3: Input: 120Ou ...
分类:
其他好文 时间:
2020-02-06 19:49:49
阅读次数:
65
这两天系统学习了对大部分基本控件得控制,今天做了一个系统的控件控制,先把代码发表一下,随后由上而下功能分讲。 MainActivity: package com.example.controlmode; import androidx.appcompat.app.AppCompatActivity; ...
分类:
其他好文 时间:
2020-02-06 19:32:26
阅读次数:
65
1 """ 2 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 3 Example 1: 4 Input: "bab ...
分类:
其他好文 时间:
2020-02-06 16:22:50
阅读次数:
60
Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input ...
分类:
其他好文 时间:
2020-02-06 14:26:57
阅读次数:
65
原文链接 https://www.cnblogs.com/lomper/p/3960462.html 首先在头文件中包含 #include<QDebug> 当开发者需要为一个装置、文件、字符串或者控制台,写出调试和跟踪信息时,该类被使用。 在需要使用的地方插入: qDebug("intensity: ...
分类:
其他好文 时间:
2020-02-06 12:35:22
阅读次数:
84
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.給一個正整數,算出他的二補數 (2’s c... ...
分类:
编程语言 时间:
2020-02-06 12:32:52
阅读次数:
77
Given two binary search trees root1 and root2. Return a list containing all the integers from both trees sorted in ascending order. Example 1: Input: ...
分类:
其他好文 时间:
2020-02-06 10:51:59
阅读次数:
43
Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image. Example: Input: ...
分类:
其他好文 时间:
2020-02-06 10:46:38
阅读次数:
71
笔者测试环境VS2019。 基本介绍 原书作者引入Julia Sets意在使用GPU加速图形的绘制。Julia Set 是指满足下式迭代收敛的复数集合 $$ Z_{n+1}=Z_{n}^2+C $$ 环境配置 跑这个例子的主要困难应该在于配置环境。这个程序依赖于openGL中的glut库。由于VS2 ...
分类:
其他好文 时间:
2020-02-06 01:50:46
阅读次数:
71
java中的所说的线程池,一般都是围绕着 ThreadPoolExecutor 来展开的。其他的实现基本都是基于它,或者模仿它的。所以只要理解 ThreadPoolExecutor, 就相当于完全理解了线程池的精髓。 其实要理解一个东西,一般地,我们最好是要抱着自己的疑问或者理解去的。否则,往往收获 ...
分类:
编程语言 时间:
2020-02-06 01:45:37
阅读次数:
77