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
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
Springboot+Activemq整合 1 导入整合所需要的依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId> </d ...
分类:
编程语言 时间:
2020-02-16 16:24:21
阅读次数:
73
表类型(存储引擎)的选择 MySQL支持的存储引擎包括MyISAM、InnoDB、BDB、MERGE、EXAMPLE、NDB、Cluster、ARCHIVE、CSV、BLACKHOLE、FEDERATED等其中InnoDB和BDB提供事物安全表,其他存储引擎都是非事务安全表。 查看当前的默认存储引擎 ...
分类:
数据库 时间:
2020-02-16 13:14:47
阅读次数:
109
今天学习了制作登录页面,并实现记住账户的功能。 1 package com.example.hp.app4; 2 3 import android.content.Context; 4 import android.content.SharedPreferences; 5 import androi ...
分类:
移动开发 时间:
2020-02-16 01:36:42
阅读次数:
88
Problem : Reverse a linked list from position m to n . Do it in one pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: 思路 : 保存2个节点 和`cur pre cur cur nex ...
分类:
其他好文 时间:
2020-02-16 01:21:34
阅读次数:
57