摘要: 在一场笔试中,碰到的题目,给一个数组,找出最小的K个数,当然首先想到的就是排序了,库函数sort一下,直接输出. 可以肯定的是这肯定不是出题者想看到的答案,各种排序算法中堆排序对这种寻找最大最小的K个数效率应该是最高的. 可惜的是笔试现场没能一挥而就...之后在电脑上实现了一下,完全的堆排序,对于寻找K个最大最小的只需用大根堆,小根堆然后判断一下到第K个就可以停止了. 阅读全文
posted @ 2012-03-09 16:11 丶Blank 阅读(726) 评论(0) 推荐(0) 编辑
摘要: CareerCup.Cracking.the.Technical.Interview.Ed4中描述道面试必须要掌握的list,仅仅是必须要知道的,并非所有的 阅读全文
posted @ 2012-03-08 21:12 丶Blank 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 最近网上浏览到,如何删除联想oem备份影藏分区的方法。但,明显可以运用在所有硬盘影藏分区的删除上。方法如下: 命令提示符(cmd)中输入diskpart 然后rescan 然后 select disk 0 然后 list partition 然后select partition X(X为你的oem分区盘号) 最后 delete partition override大功告成! 简单吧?可比下载、安装啥PM之类的方便多了。这种方法,可用于一切硬盘分区的删除额! 阅读全文
posted @ 2012-03-04 20:27 丶Blank 阅读(699) 评论(0) 推荐(0) 编辑
摘要: SQL SERVER 如果卸载不干净,就会导致下一次安装失败,下面是卸载的步骤,本人试过多次,可完全卸载干净。当然,可能下列某些步骤可以省略。1.停掉SQL SERVER 2008所有相关服务2.控制面板“添加删除程序”中,删除SQL SERVER 2008相关的程序3.用 Windows Install Clean Up 工具卸载SQL 2008组件4.用SrvInstw.exe删除所有SQL服务5.清除注册表 5.1将HKEY_CURRENT_USER---Software----Microsoft下的Microsoft SQL Server文件夹全部删除 5.2将HKEY_LOCAL.. 阅读全文
posted @ 2012-03-01 12:44 丶Blank 阅读(2361) 评论(0) 推荐(0) 编辑
摘要: WIN7中,之前装过2005,完全卸载之后手动清除注册表残余项然后删除E:\Users\"用户名"\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0下的user.config重装成功. 阅读全文
posted @ 2012-02-29 18:05 丶Blank 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。 现在请计算A+B的结果,并以正常形式输出。 阅读全文
posted @ 2012-02-20 17:48 丶Blank 阅读(297) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specification: Each input file contains one test case. Each case occupies one line which contains an N (= 10100). 阅读全文
posted @ 2012-02-17 16:29 丶Blank 阅读(262) 评论(0) 推荐(0) 编辑
摘要: This time, you are supposed to find A+B where A and B are two polynomials. Input Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial: K N1 aN1 N2 aN2 ... NK aNK, where K is the number of nonzero terms in the polynomial, Ni and aNi (i=1, 2, ..., K) are the exponents and coefficients, respectively. It is given that 1 = K = 10,0 = NK ... N2 N1 =1000. 阅读全文
posted @ 2012-02-17 11:49 丶Blank 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Each input file contains one test case. Each case contains a pair of integers a and b where -1000000 = a, b = 1000000. The numbers are separated by a space. 阅读全文
posted @ 2012-02-16 18:39 丶Blank 阅读(342) 评论(1) 推荐(0) 编辑
摘要: 问题概述:在导入一个app后提示如下错误:“Error generating final archive: Debug Certificate expired on 11/11/09 15:25”原因分析:android要求所有的程序必须有签名,否则就不会安装该程序。在我们开发过程中,adt使用debug keystore,在 preference->android->buid中设置。debug的keystore默认有效期为一年,如果你是从一年前开始完android程序,那么在一年后导入这个app的时候很可能出现debug keystore过期,导致你无法生成 apk文件。此时你只 阅读全文
posted @ 2011-11-09 15:40 丶Blank 阅读(153) 评论(0) 推荐(0) 编辑