原创 華爲研發校招面試

時間:2016-04-17 面的技術研發崗,我遇到的這個面試官人比較和藹,沒有問語言類的問題,開始做完自我介紹後,面試官讓我從簡歷中列的項目經歷中介紹一個。這個由於自己來講,所以談笑風生中過去了。然後面試官問的我都是一些操作系統、組成原理

原创 題目1515:打印1到最大的N位數

#include <iostream> #include <cstdio> using namespace std; int count1(int x) { int cnt = 0; while(x != 0) {

原创 C++學習之map類型

1。目錄 map簡介map的功能map的定義在map中添加元素查找並獲取map中的元素從map中刪除元素map對象的迭代遍歷  2。map簡介 map是一類關聯式容器,它是模板類。關聯的本質在於元素的值與某個特定的鍵相關聯,而並非通過元

原创 題目1514:數值的整數次方

模仿其寫的代碼一直報錯!!!見原文吧。 http://blog.csdn.net/SunnyYoona/article/details/14646053

原创 題目1518:反轉鏈表

#include <iostream> #include <cstdio> #include <cstdlib> using namespace std; struct Node { int num; Node *

原创 題目1388:跳臺階

#include <iostream> #include <cstdio> using namespace std; int main() { long long FI[75]={0,1,2}; int n; fo

原创 題目1517:鏈表中倒數第k個結點

#include <cstdio> #include <cstdlib> using namespace std; struct Node { int num; Node * next; }; int ge

原创 題目1520:樹的子結構

#include <cstdio> #include <cstdlib> using namespace std; struct Tree{ int v; Tree *left,*right; }* Tree_A[1099

原创 客戶端 用不用 bind 的區別

  無連接的socket的客戶端和服務端以及面向連接socket的服務端通過調用bind函數來配置本地信息。使用bind函數時,通過將my_addr.sin_port置爲0,函數會自動爲你選擇一個未佔用的端口來使用。   Bind()函

原创 Java操作HBase

環境:HBase0.95.2     Hadoop1.2.1     CentOS6.5     Eclipse package HbaseTest; import java.io.IOException; import java.ut

原创 題目1519:合併兩個排序的鏈表

#include <cstdlib> #include <cstdio> using namespace std; struct Node { int num; Node * next; }; Node

原创 過濾網頁中的HTML標籤C++代碼

#include<iostream> #include<fstream> #include<string> #include<stdlib.h> using namespace std; int Filter(string infile

原创 7. Reverse Integer

這個沒什麼講的,很簡單的題。JS代碼如下: /** * @param {number} x * @return {number} */ var reverse = function(x) { var res = 0,