Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:
其他好文 时间:
2020-02-17 23:52:41
阅读次数:
90
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2020-02-17 22:33:36
阅读次数:
99
Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Explan ...
分类:
其他好文 时间:
2020-02-17 22:31:56
阅读次数:
92
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:
其他好文 时间:
2020-02-17 19:59:09
阅读次数:
80
题目内容 Example: 分析过程 题目归类: 垂直比较 题目分析: 最简单的思路就是从头开始,第一轮比较第一个字符,第二轮比较第二个字符·····这样的效率比较低。 新的方法是,(接下来的数组代表字符串,0代表strs[0])0和1比较后存到0,然后0和2比较后保存到0····· 利用Strin ...
分类:
其他好文 时间:
2020-02-17 16:13:55
阅读次数:
51
被.pro文件中的相对路径给整糊涂了,仔细研究后,原来.pro文件中有两种相对路径。 一种情况下./表示.pro文件所在的目录 另一种情况下./表示构建生成目录 INCLUDEPATH SOURCE FORM HEADERS 这些变量中使用的./指的是.pro文件所在的目录 而DESTDIR OBJ ...
分类:
其他好文 时间:
2020-02-17 16:13:19
阅读次数:
109
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Example: I ...
分类:
其他好文 时间:
2020-02-17 12:18:03
阅读次数:
62
今天没有学习新的知识,把前面所学的复习了一下,今天做了一个简单的记账APP,实现了它的登录和界面之间的跳转的功能。下面是一些代码,我还没有做完。 1 package com.example.hp.jizhang; 2 3 import android.content.Context; 4 impor ...
分类:
移动开发 时间:
2020-02-16 23:26:38
阅读次数:
128
package com.example.webview; import android.os.Bundle; import android.view.View; import android.widget.Button; import androidx.appcompat.app.AppCompat ...
分类:
移动开发 时间:
2020-02-16 20:48:19
阅读次数:
309
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in th ...
分类:
其他好文 时间:
2020-02-16 20:25:53
阅读次数:
53