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
HashMap实现原理(jdk1.7),源码分析 ? HashMap是一个用来存储Key Value键值对的集合,每一个键值对都是一个Entry对象,这些Entry被以某种方式分散在一个数组中,这个数组就是HashMap的主干。 一、几大常量 二、构造器 put内的方法深入分析: 1. inflat ...
分类:
其他好文 时间:
2020-02-05 16:36:14
阅读次数:
94
CentOS7.6 下部署Django3.0应用,使用nginx+uwsgi部署: 1. uwsgi部署 在项目的根目录中,新建文件夹 conf, 然后进入conf文件夹,并新建文件 uwsgi.ini, 内容如下: # mysite_uwsgi.ini file [uwsgi] # Django- ...
分类:
其他好文 时间:
2020-02-04 18:39:41
阅读次数:
131
package com.cyl.test3; import java.util.Calendar; import java.util.Scanner; public class RiLi { public static void main(String[] args){ int year= 2020 ...
分类:
编程语言 时间:
2020-02-04 12:20:00
阅读次数:
140
1 """ 2 Given a binary tree, find its maximum depth. 3 The maximum depth is the number of nodes along the longest path from the root node down to the ...
分类:
其他好文 时间:
2020-02-02 23:16:12
阅读次数:
93
Given a binary tree . Split the binary tree into two subtrees by removing 1 edge such that the product of the sums of the subtrees are maximized. Sinc ...
分类:
其他好文 时间:
2020-02-02 15:59:08
阅读次数:
110
用了python的set。为了效率,先做了预处理,并排序了。要注意,排序完才好预处理,否则i,j会对不上。 class Solution: def maxProduct(self, words: List[str]) -> int: maxProd = 0 words = sorted(words, ...
分类:
其他好文 时间:
2020-02-01 21:34:23
阅读次数:
75
题目描述Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1... ...
分类:
其他好文 时间:
2020-02-01 12:30:58
阅读次数:
94
In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, suppose you are a domin ...
分类:
编程语言 时间:
2020-01-31 12:43:32
阅读次数:
85