Objective: Given ‘N’ windows where each window contains certain number of tickets at each window. Price of a ticket is equal to number of tickets rema ...
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: DP的做法,递推公式: ...
分类:
其他好文 时间:
2018-09-23 18:08:16
阅读次数:
203
In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Each subarray will be of size k, and we want to max ...
分类:
移动开发 时间:
2018-09-23 16:37:21
阅读次数:
267
题目6: 2008年2月有多少天?那年有多少天? (视频下载) (全部书籍) import java.util.*;public class Test { public static void main(String[] args) { Date date; Calendar time=Calend ...
分类:
其他好文 时间:
2018-09-23 16:34:57
阅读次数:
190
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. 1. use an arr ...
分类:
其他好文 时间:
2018-09-23 15:06:24
阅读次数:
122
title: RMQ_第一弹_Sparse Table date: 2018 09 21 21:33:45 tags: acm RMQ ST dp 数据结构 算法 categories: ACM 概述 RMQ (Range Minimum/Maximum Query) 从英文便可以看出这个算法的主要 ...
分类:
其他好文 时间:
2018-09-22 00:58:45
阅读次数:
190
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-s ...
分类:
微信 时间:
2018-09-21 13:33:23
阅读次数:
346
MTU是Maximum Transmission Unit的缩写,意为最大传输单元,通俗的理解就是在网络上传送的最大数据包,单位是字节。 以太网对数据帧的长度都有一个限制,其最大值为1500,这个特性被称作MTU,不同类型的网络大多数都有一个上限。如果IP层有一个IP包要传,而且数据的长度比链路层上 ...
分类:
其他好文 时间:
2018-09-20 16:09:19
阅读次数:
239
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: E ...
分类:
编程语言 时间:
2018-09-20 11:22:11
阅读次数:
162