Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Note: There may be more than one LIS combination, it ...
分类:
其他好文 时间:
2019-08-31 01:16:31
阅读次数:
124
The K?P factorization of a positive integer N is to write N as the sum of the P-th power of Kpositive integers. You are supposed to write a program to ...
分类:
其他好文 时间:
2019-08-30 18:45:54
阅读次数:
48
/** * 700. Search in a Binary Search Tree * https://leetcode.com/problems/search-in-a-binary-search-tree/description/ * */ class TreeNode(var `val`: I... ...
分类:
其他好文 时间:
2019-08-29 23:41:06
阅读次数:
118
Red Hat Enterprise Linux 6.x: Installation and Upgrade - SAP Note 1496410 Red Hat Enterprise Linux 7.x: Installation and Upgrade - SAP Note 2002167 In ...
分类:
其他好文 时间:
2019-08-29 13:22:12
阅读次数:
104
markdown本地图片转base64嵌入 自己偶尔也写博客,但插入图片实在是一大难事,本身用的是typora离线来写markdown,图片也大多是本地的,每次将markdown复制到博客园编辑器,图片都不能显示(因为这里要求是网络地址而不是本地地址),来回拖动图片很打击我写作的积极性,所以我尝试写 ...
分类:
其他好文 时间:
2019-08-28 19:55:12
阅读次数:
642
前提 本文前提: 1. 我个人博客的草稿是存放在 github上的一个仓库 "diarynote" 2. 截图存放的图片或者需要放在文章中图片,会固定存放在对应的文件夹中,我个人是使用日期文件夹,如: 3. 本文中提到的 ,都是指我自己的 "diarynote" 仓库 使用GitHub作为图床 从上 ...
分类:
其他好文 时间:
2019-08-28 18:44:25
阅读次数:
301
Description: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of th ...
分类:
其他好文 时间:
2019-08-28 18:23:42
阅读次数:
89
Buy Tickets POJ 2828 思维+线段树 题意 是说有n个人买票,但是呢这n个人都会去插队,问最后的队列是什么情况。插队的输入是两个数,第一个是前面有多少人,第二个是这个人的编号,最后输出编号就好了。 解题思路 这个题要倒着处理,因为最后一个人插队完成后,别人就不能影响他了。他前面有n ...
分类:
其他好文 时间:
2019-08-28 12:53:33
阅读次数:
89
题目描述 把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小值为1。NOTE:给出的所有元素都大于0,若数组大小为0,请返回0。 把一个数组最开始 ...
分类:
编程语言 时间:
2019-08-27 16:58:36
阅读次数:
113
题目链接: "POJ 1269" Problem Description We all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will int ...
分类:
其他好文 时间:
2019-08-27 16:57:27
阅读次数:
115