Problem Description Zjt and Sara will take part in a game, named Game III. Zjt and Sara will be in a maze, and Zjt must find Sara. There are some stra
分类:
其他好文 时间:
2016-02-11 18:00:49
阅读次数:
272
题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter
分类:
其他好文 时间:
2016-02-10 22:13:17
阅读次数:
205
一道树型dp,方程在程序里有,注意循环的顺序和初始化。 #include<iostream>#include<cstdio>#include<cstring>using namespace std;long long dp[35][35],n,w[35],c[35][35];void find(lo
分类:
其他好文 时间:
2016-02-10 22:11:12
阅读次数:
221
题目: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1 →
分类:
其他好文 时间:
2016-02-10 18:44:50
阅读次数:
180
一、文件查找命令分类
1.locate命令
该命令是非实时的,模糊匹配,查找是根据全系统文件数据库进行的,速度比较快;可以自己定义更新数据库的策略,也可以使用updatedb命令手动生成或者更新文件数据库;该命令不经常使用。
2.find命令
该命令是实时的,精确查找,遍历所有..
分类:
系统相关 时间:
2016-02-10 15:26:45
阅读次数:
324
原题链接 直接贴代码,这道题是 search in rotated sorted array leetcode 的前面部分! 1 class Solution { 2 public: 3 int findMin(vector<int>& nums) { 4 if (nums.empty()) 5 r
分类:
其他好文 时间:
2016-02-10 10:55:01
阅读次数:
180
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function
分类:
编程语言 时间:
2016-02-10 01:36:06
阅读次数:
270
React Native运行报错ReferenceError: Can't find variable: _fbBatchedBridge' React Native目前貌似要火的样子,作为移动开发人员,当然需要关注最新的开发技术,所以也就跟风试了试,但是发现运行的时候红屏报错,谷歌了一下,发现官网
分类:
数据库 时间:
2016-02-09 15:03:18
阅读次数:
610
刚做了两道Two Sigma OA。 还是两道老题, Friend Cycle和Longest Chain。 Friend Cycle可以用Union Find来做。优化的时候因为矩阵是沿对角线对称,所以可以只扫描一半的元素,也可以加上Path Compresssion和 weight。 Longe
分类:
其他好文 时间:
2016-02-08 13:32:51
阅读次数:
382
The trivial way, O(m + n): Merge both arrays and the k-th smallest element could be accessed directly. Merging would require extra space of O(m+n). Th
分类:
其他好文 时间:
2016-02-08 04:53:47
阅读次数:
381