最近在做毕设的收尾工作,很多程序都要部署到linux下来运行,遇到了挺多问题,昨天就集中性遇到了 在编译应用时,遇到了/usr/bin/ld: cannot
find -lxxx这种情况是系统找不到对应的库文件,其中,-lxxx表示链接库文件 libxxx.so。其命名规则是:lib+库名(即xxx...
分类:
其他好文 时间:
2014-05-19 21:30:52
阅读次数:
226
Question 1:Given an array of integers, find two
numbers such that they add up to a specific target number.The function twoSum
should return indices of...
分类:
其他好文 时间:
2014-05-19 09:35:41
阅读次数:
321
Given a stringS, find the longest palindromic
substring inS. You may assume that the maximum length ofSis 1000, and there
exists one unique longest pa...
分类:
其他好文 时间:
2014-05-18 19:39:55
阅读次数:
355
select查询
mongodb使用find或者findOne来查询:
find批量查询。
findOne是查询一条记录。
find有两个参数: 第一个查询条件, 第二个查询返回的字段。
下面是mongodb与sql查询的对应关系表:...
分类:
数据库 时间:
2014-05-18 18:30:49
阅读次数:
311
【题目】
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without any intervening characters.
For example, given:
S:...
分类:
其他好文 时间:
2014-05-18 08:31:48
阅读次数:
228
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-18 02:11:19
阅读次数:
302
Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given[100, 4,
200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-05-18 01:52:45
阅读次数:
317
修改及查看mysql数据库的字符集Liunx下修改MySQL字符集:1.查找MySQL的cnf文件的位置find/-iname‘*.cnf‘-print/usr/share/mysql/my-innodb-heavy-4G.cnf/usr/share/mysql/my-large.cnf/usr/share/mysql/my-small.cnf/usr/share/mysql/my-medium.cnf/usr/share/mysql/my-huge.cn..
分类:
数据库 时间:
2014-05-16 02:33:28
阅读次数:
426
material=newMaterial(Shader.Find("Custom/Alpha"));material.SetFloat("_Shininess",materialAlpha);voidOnRenderImage(RenderTexturesource,RenderTexturedestination){Graphics.Blit(source,destination,material);}
分类:
其他好文 时间:
2014-05-16 02:28:04
阅读次数:
572
【题目】
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). Find two lines, which together with x-axis forms a contain...
分类:
其他好文 时间:
2014-05-16 01:32:47
阅读次数:
406