原创 20131129秒針系統算法面試
1、從ip庫中查找ip,結構體定義如下: struct ipEntry { int start; int end; int AddressID; } int find(Vector<ipEntry>& iplib,ipEntry ip)
原创 DBSCAN聚類算法的實現
設有N個樣本,樣本爲p維, (1)計算距離矩陣D,時間複雜度爲O(N*N*p); (2)對距離矩陣的每一行進行從小到大排序,得到SD(sorted D),時間複雜度爲O(N*N*log(N)); (3)根據Eps與MinPts,標註核心點
原创 20131013百度北京深度學習算法研發工程師筆試題
閒話少敘,直接上乾貨。 百度筆試試卷的一貫結構,三道簡答題10‘*3=30’,三道算法與程序設計題15‘*3=45’,兩道程序設計題二選一25‘。 一、簡答題 1、目前深度神經網絡有哪些成功的應用,簡述其適用原因。 2、不同進程之間進行通
原创 2009藝龍筆試
1、在windows NT下,程序運行結果爲? #include <iostream> using namespace std; int main() { char a[100]; cout<<func(a)<<endl;
原创 dojo/dom-class用法
Method Summary add(node, classStr) Adds the specified classes to the end of the class list on the passed node. con
原创 2013年搜狗筆試題
1、程序運行結果爲(12) #include <iostream> using namespace std; class Base{ public:Base(int j):i(j){}virtual~Base(){}void func1(
原创 2010年MCM犯罪學問題評審commentary
Judges’Commentary: TheOutstanding Geographic ProfilingPapers Marie Vanisko Dept. ofMathematics, Engineering, and Co
原创 58同城產品類筆試題目_20131030
1、168、183、195、210、(213) 2、一小夥買衣服,衣服進價18,標價21。小夥給了老闆100元,老闆沒零錢,向街坊換了100元零錢,找給小夥79元,事後街坊發現錢是假的,老闆沒辦法,只好又給了街坊100元。問:老闆在這次交
原创 C++中vector容器的內存管理
vector是類模板,某種程度上可以看做是數組的升級版,但創建後仍可以改變大小。甚至《C++ primer(第4版)》中還有這樣子的說法:“從技術上說,在原來爲空的vector容器上n次調用push_back函數,從而創建擁有n個元素的v
原创 C++中內置基本類型的字節數
之前一直搞不清楚C++中各基本內置類型的字節數,今天運行了一下。C++基本內置類型一共十種,short,int,unsigned,long;bool;char,wchar_t;float,double,l
原创 dojo/query的使用
1. 基本用法 query(selector,context) 2.以前的版本 parentNode.getElementByTagName(selector) 顯然老版本的函數很長,新版本非常簡練。
原创 dojo/dom-construct的create方法
create(tag, attrs, refNode, pos) Parameter Type Description tag DOMNode | String A string of the element to c
原创 dojo/dom-attr的用法
method summary: get(node, name) Gets an attribute on an HTML element. getNodeProp(node, name) Returns an effective