xixi2


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 搜索

312. Burst Balloons(打气球的最大分数)

发表于 2019-10-12 | 分类于 leetcode

Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will get nums[left] * nums[i] * nums[right] coins. Here left and right are adjacent indices of i. After the burst, the left and rightthen becomes adjacent.

Find the maximum coins you can collect by bursting the balloons wisely.

阅读全文 »

907. Sum of Subarray Minimums

发表于 2019-10-12 | 分类于 leetcode

Given an array of integers A, find the sum of min(B), where B ranges over every (contiguous) subarray of A.

Since the answer may be large, return the answer modulo 10^9 + 7.

阅读全文 »

Partition Array into Disjoint Intervals

发表于 2019-10-12 | 分类于 leetcode
  1. Partition Array into Disjoint Intervals
阅读全文 »

389. Find the Difference

发表于 2019-10-12 | 分类于 leetcode

Given two strings s and t which consist of only lowercase letters.

String t is generated by random shuffling string s and then add one more letter at a random position.

Find the letter that was added in t.

阅读全文 »

sliding window 系列

发表于 2019-10-11 | 分类于 leetcode

滑动窗口系列

阅读全文 »

linux查看cpu内存流量磁盘IO的命令

发表于 2019-10-10 | 分类于 linux基础

linux中用于查看cpu、内存、磁盘IO的命令有vmstat,free等。

阅读全文 »

CS中一些易混淆和忘记的基本概念

发表于 2019-10-10 | 分类于 CS基础

此文档总结一些易忘记和易混淆的基础概念。

阅读全文 »

聊聊IO多路复用之select、poll、epoll详解

发表于 2019-10-10 | 分类于 网络编程

本文档非原创。主要总结io多路复用中的几个模型。
IO多路复用是指内核一旦发现进程指定的一个或者多个IO条件准备读取,它就通知该进程。

阅读全文 »

memmove与memcopy

发表于 2019-10-10

memcpy、memmove,memcpy和strcpy分别用

阅读全文 »

linux中的5种IO模型

发表于 2019-10-10 | 分类于 linux基础

本文档讲解linux中的5种io模型。并非原创。

阅读全文 »
1…8910…18
xixi2

xixi2

一去不复返的远方还有无法抵达的过去

175 日志
21 分类
107 标签
© 2019 xixi2
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.4
访问人数 总访问量 次