Time of Update: 2014-06-24
標籤:style class http ext color com 原文來自於我以前一個甲方朋友的訪談(什麼是甲方?請自行腦補),文寫了好久了,一直沒放出來,此次小說化改編後放出來給大家瞅瞅。很多程式員除了對自己上級領導“憎恨有加”外,還經常會把使用者當成自己的天敵而不是上帝。我們這些使用者在程
Time of Update: 2014-06-24
標籤:二分尋找轉載請註明出處:http://blog.csdn.net/ns_code/article/details/33747953 本篇博文沒太多要說的,二分尋找很簡單,也是常見常考的尋找演算法,以下是遞迴非遞迴的實現。 非遞迴實現:/*非遞迴實現,返回對應的序號*/int BinarySearch(int *arr,int len,int key){if(arr==NULL || len<1)return -1;int low =
Time of Update: 2014-06-24
標籤:des style class blog code http 一。說明:
Time of Update: 2014-06-24
標籤:lua cocos2d-x Cocos2d-x 指令碼語言Lua基本資料結構-表(table)table是Lua中唯一的資料結構,其他語言所提供的資料結構,如:arrays、records、lists、queues、sets等,Lua都是通過table來實現,並且在lua中table很好的實現了這些資料結構。--摘自:《Programming in Lua》看以下代碼,可以很清晰的明白Lua中表的使用:-- Lua中的表,
Time of Update: 2014-06-24
標籤:style class blog code http tar 10140 - Prime Distance題目連結題意:求[l,r]區間內最近和最遠的素數對。思路:素數打表,打到sqrt(Max)即可,然後利用大的表去篩素數,由於[l,
Time of Update: 2014-06-24
標籤:style class blog code java ext 真機測試時個別機型toast資訊不顯示,找到兩個解決方案,不知還有什麼其它有效方法,期待大神們的分享!!!1、手動方案:設定——>應用軟體管理——>對應APP——>勾選顯示通知框2、替代方案:避免toast被攔
Time of Update: 2014-06-24
標籤:style http com width 2014 name 請看:
Time of Update: 2014-06-24
標籤:openstack 自動化 install os環境為: ubuntu14.04安裝步驟:更新系統軟體包: sudo apt-get dist-upgrade #出現無法訪問到ubuntu官網的錯誤。安裝git: sudo apt-get install git下載項目: git clone
Time of Update: 2014-06-24
標籤:並查集做了一上午,終於ac了 wa了一次主要是忘了還有環!!! 主要是運用並查集知識,又複習了一次!!思路:輸入之後找能不能成環,成環就不是,其次還要判斷是不是有兩個父節點,如果有兩個父節點也不是,之後就找相關的祖先就好了;還要注意:如果只有一個節點,也是樹,如果有兩個或多個根節點也不是樹;如果沒有根節點也不是連結http://acm.hdu.edu.cn/showproblem.php?pid=1325代碼#include<stdio.h>int fat[1000]
Time of Update: 2014-06-24
標籤:模板 lis 轉載請註明出處:http://blog.csdn.net/u012860063一般的情況下:#include <stdio.h>#include <algorithm>#include <string.h>using namespace std;int a[1005],dp[1005],n;int LIS(){ int i,j,ans,m; dp[1] = 1;
Time of Update: 2014-06-24
標籤:leetcodeDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) - Get the value (will always be positive) of the key if the key exists in the
Time of Update: 2014-06-24
標籤:c strlen sizeof 區別 (1)用strlenFunction Compute字串的長度時,strlen的結果值是不包含’\0’的。而sizeof計算
Time of Update: 2014-06-24
標籤:java如下:package com.test;import java.security.MessageDigest;public class MD5 { // MD5加碼。32位 public static String MD5(String inStr) { MessageDigest md5 = null; try { md5 = MessageDigest.getInstance("MD5"); } catch (Exception e) {
Time of Update: 2014-06-24
標籤:style blog java http ext color
Time of Update: 2014-06-24
標籤:hdu 線段樹 演算法 轉載請註明出處:http://blog.csdn.net/u012860063題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=1698Problem DescriptionIn the game of DotA, Pudge’s meat hook is actually the most horrible thing
Time of Update: 2014-06-24
標籤:Lucene class blog code java 使用 對於一個搜尋而言,其核心語句為:searcher.search(query,
Time of Update: 2014-06-24
標籤:升職 測試人員升職 服眾 團隊提高 加薪升職是像我們這種在職場打拚的人養家糊口發家致富的必經之路,關於加薪就不說了,可以看一下之前一篇文章:測試人員如何多漲薪。關於升職,一個最基本的觀點:不是身在其位才具備這個能力,而是具備了這種能力才能提升到這個位子。可能很多初入職場的人都覺得我要是升到某某職位後也會這樣拚命努力工作,這當然是錯誤的認識。事實上,很多時候
Time of Update: 2014-06-24
標籤:jsonException in thread "main" java.lang.RuntimeException: No-args constructor for class java.sql.Timestamp does not exist. Register an InstanceCreator with Gson for this type to fix this problem.#關於使用Google GSON 實現Json協議字元協議序列化和還原序列化
Time of Update: 2014-06-24
標籤:生活 經驗 個人能力 知識
Time of Update: 2014-06-24
標籤:flex flash builder (mx.messaging.messages::RemotingMessage)#0 body = (Array)#1 clientId = (null) destination = "" headers = (Object)#2 messageId =