ICode9

精准搜索请尝试: 精确搜索
  • mysql占用CPU超过100%解决过程2019-06-20 11:02:04

    2017年12月2日上午,将学校新闻网2015年之前的45000多条记录迁移到了新网站的mysql数据库,新网站上有2015年1月1日之后的9000多条记录,数据量一下子增加了5倍。2017年12月3日晚上9点多,有领导和老师反映新闻网无法访问,立即登录服务器进行排查。 一、使用top命令看到的情况如下: 可以看到

  • LeetCode.11-装水最多的容器(Container With Most Water)2019-06-11 08:52:34

    这是悦乐书的第350次更新,第375篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Medium级别的第5题(顺位题号是11)。给定n个非负整数a1,a2,…,an,其中每个表示坐标(i,ai)处的点。绘制n条垂直线,使得线i的两个端点位于(i,ai)和(i,0)。找到两条线,它们与x轴一起形成一个容器,这样容器就含有最多的水

  • LeetCode.11-装水最多的容器(Container With Most Water)2019-06-11 08:50:03

    这是悦乐书的第350次更新,第375篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Medium级别的第5题(顺位题号是11)。给定n个非负整数a1,a2,…,an,其中每个表示坐标(i,ai)处的点。绘制n条垂直线,使得线i的两个端点位于(i,ai)和(i,0)。找到两条线,它们与x轴一起形成一个容器,这样容器就含有

  • poj3525 Most Distant Point from the Sea2019-06-09 19:50:25

    题目描述: vjudge POJ 题解: 二分答案+半平面交。 半径范围在0到5000之间二分,每次取$mid$然后平移所有直线,判断半平面交面积是否为零。 我的eps值取的是$10^{-12}$,36ms,而且和样例一样。 (大力推荐) 代码: #include<cmath>#include<vector>#include<cstdio>#include<cstring>#include<a

  • Survey lists 10 most innovative cities2019-05-28 19:52:50

    From China Daily Beijing and Shanghai are among the 10 most innovative cities in the world, based on published articles in leading academic journals, a survey released on Friday said. The reported by the Shanghai Institute for Science of Science and Sprin

  • linux 中more、less 和 most 的区别2019-05-27 13:40:47

    如果你是一个 Linux 方面的新手,你可能会在 more、less、most 这三个命令行工具之间产生疑惑。在本文当中,我会对这三个命令行工具进行对比,以及展示它们各自在 Linux 中的一些使用例子。总的来说,这几个命令行工具之间都有相通和差异,而且它们在大部分 Linux 发行版上都有自带。 我们首

  • LeetCode算法题-Most Common Word(Java实现)2019-04-30 14:55:11

    这是悦乐书的第321次更新,第342篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第190题(顺位题号是819)。给定一个段落和一组禁止词,返回不在禁止词列表中的最常用词。段落中保证至少有一个词没有被禁止,并且答案是独一无二的。禁用单词列表中的单词以小写字母给出,没有标

  • L1-Day102019-04-25 21:38:24

    1、你需要的是更多的练习。【我的翻译】That you need is more practice.【标准答案】What you need is more practice【对比分析】主语从句用That还是用What?主语从句中如果成分不缺的话用that,缺失宾语的话用what.【解题思路】         - 内部关系:描述关系        

  • (20)The most mysterious star in the universe2019-04-22 12:51:33

    https://www.ted.com/talks/tabetha_boyajian_the_most_mysterious_star_in_the_universe/transcript00:12Extraordinary claims require extraordinary evidence, and it is my job, my responsibility, as an astronomer to remind people that alien hypotheses should alw

  • *11. Container With Most Water2019-04-09 20:54:28

    1. 原始题目 给定 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。 说明:你不能倾斜容器,且 n 的值至少为 2。 图

  • find the most comfortable road (并查集+路径枚举2019-04-04 17:51:05

    XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 ,(理解为SARS的限速要求

  • leetcode 819. 最常见的单词(Most Common Word)2019-04-01 17:38:16

    目录 题目描述: 示例: 解法: 题目描述: 给定一个段落 (paragraph) 和一个禁用单词列表 (banned)。返回出现次数最多,同时不在禁用列表中的单词。题目保证至少有一个词不在禁用列表中,而且答案唯一。 禁用列表中的单词用小写字母表示,不含标点符号。段落中的单词不区分大小写。答案都

  • [Swift]LeetCode819. 最常见的单词 | Most Common Word2019-03-28 19:40:23

    Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words.  It is guaranteed there is at least one word that isn't banned, and that the answer is unique. Words in the list of banned words are

  • 用枚举类解决Switch-Case过长的sonar问题Reduce the number of switch cases from 38 to at most 30.2019-03-06 16:38:15

    【问题】Switch-Case过长的sonar问题Reduce the number of switch cases from 38 to at most 30. 1 switch (m.get("操作").toString()) { 2 case "启动应用": 3 builder.append

  • 21 Survival of Desert Life 沙漠生命的延续2019-03-02 13:40:52

    21 Survival of Desert Life 沙漠生命的延续① Some desert animals can survive the very strong summer heat and dryness because they have very unusual characteristics.The camel,for example,can hear an increase in the temperature of its body and its blood of 9℃.I

  • [leetcode 11] Container With Most Water2019-02-28 22:53:33

    记录加入Datawhale第三天,养成每天做题的好习惯 题目描述: Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin

  • POJ3525 Most Distant Point from the Sea2019-02-10 19:41:17

    半平面交+二分 二分最远距离把每个直线往里移这个距离然后看一下半平面交是否存在就好 然后注意精度问题 【poj G++需要用%f C++没有问题 //Love and Freedom.#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>#define inf 20021225#define ll long long#def

  • Leetcode Summary...2019-02-09 18:37:47

    Sliding Window Problems 76. Minimum Window Substring 438. Find All Anagrams in a String 30. Substring with Concatenation of All Words 3. Longest Substring Without Repeating Characters 159. Longest Substring with At Most Two Distinct Characters 567. Permut

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有