https://leetcode.com/problems/unique-letter-string/description/ A character is unique in string S if it occurs exactly once in it. For example, in str ...
分类:
其他好文 时间:
2018-09-27 01:54:00
阅读次数:
285
一、Linux基本使用与常用命令 1、清屏命令:clear 或者 ctrl+L ; 2、man命令:输入 man+数字+命令/函数: 即可以查到相关的命令和函数。如man 3 sleep:显示sleep命令手册的库函数;如man sleep:显示sleep命令的手册。 3、help命令:第一条命令: ...
分类:
系统相关 时间:
2018-09-25 12:43:03
阅读次数:
212
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes ...
分类:
其他好文 时间:
2018-09-25 11:33:10
阅读次数:
173
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example: Input: 2 Output: 91 Explanation: The answer shoul ...
分类:
其他好文 时间:
2018-09-25 01:31:19
阅读次数:
174
结对伙伴:陈振华 项目要求 1.题目:实现一个自动生成小学四则运算题目的命令行程序。 2.需求: 1. 使用 -n 参数控制生成题目的个数 2. 使用 -r 参数控制题目中数值(自然数、真分数和真分数分母)的范围。该参数可以设置为1或其他自然数。该参数必须给定,否则程序报错并给出帮助信息。 3. 生 ...
分类:
编程语言 时间:
2018-09-25 01:10:52
阅读次数:
232
题目链接:The Shortest Statement 今天又在群里看到一个同学问$n$个$n$条边,怎么查询两点直接最短路。看来这种题还挺常见的。 为什么最终答案要从42个点的最短路(到$x,y$)之和,还有$x,y$到$LCA(x,y)$的距离里面取呢? 就是如果走非树边,那么一定要走42个点中 ...
分类:
其他好文 时间:
2018-09-23 22:38:24
阅读次数:
273
题意: 求n个串里的LCS,长度相同时按照字典序排序 solution: 断环为链,二进制枚举子序列,压入vector,按照字典序排序 把出现次数为n的,压入第二个vector 输出最长的第二个vector里最长的序列 1 #include<bits/stdc++.h> 2 #define endl ...
分类:
其他好文 时间:
2018-09-23 11:31:19
阅读次数:
161
写在前面 上一篇文章对Caffe2中的core模块进行了简单拆解 "Caffe2源码解析之core" ,本篇给出其它模块的拆解,目的是大致了解每个模块的内容和目标,进一步理解Caffe2的整体框架。内容不多,略做整理如下。 目录 core proto caffe2.proto hsm.proto m ...
分类:
其他好文 时间:
2018-09-23 00:19:59
阅读次数:
204
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:
其他好文 时间:
2018-09-23 00:18:57
阅读次数:
145
import sqlite3, sys, logging, time, os, json, zlib, re'''MapDBImporter-latest -f png -mName "World Light" -mDescription "A simple, light grey world ma... ...
分类:
其他好文 时间:
2018-09-22 21:17:32
阅读次数:
159