Tmobile 的family plan 没有买数据 能上网么# PDA - 掌中宝y*a2012-03-27 07:031 楼弱问如果面试的时候说要用hash table又用c++答题的话,怎么办?STL没有hashtable啊,能说用map代替吗?
t*j2012-03-27 07:033 楼这个到时候和面试官商量,大概表示出意思就行了。hashtable【在 y*****a 的大作中提到】: 弱问如果面试的时候说要用hash table又用c++答题的话,怎么办?: STL没有hashtable啊,能说用map代替吗?
u*d2012-03-27 07:034 楼可以wifi上网.他家的2GB, 5GB计划都是unlimited (头2GB、5GB用的是4G网络,之后的是3G网络);200M计划是固定的.2GB:10$/线/月5GB: 20$/线/月.【在 d*******a 的大作中提到】: 怎么开通 多少钱?按流量算还是怎么算~: 想去ms 比一下
y*a2012-03-27 07:037 楼就是说只管映射过去,不处理collision?【在 c*********7 的大作中提到】: 自己定义个简单的hash table,其实用数组+映射就行。复杂的可能需要用map了。
s*y2012-03-27 07:038 楼2GB:10$/线/月???我在网上找不到, 能给一个 Link 吗?如果我用T-mobile prepaid, 也可以另外申请 2GB:10$/线/月 吗?
y*i2012-03-27 07:039 楼用stl扩展库里的hash_map#include ...stdext::hash_map<...> ...;【在 y*****a 的大作中提到】: 弱问如果面试的时候说要用hash table又用c++答题的话,怎么办?: STL没有hashtable啊,能说用map代替吗?
r*l2012-03-27 07:0310 楼http://www.t-mobile.com/shop/Packages/ValuePackages.aspx【在 s***y 的大作中提到】: 2GB:10$/线/月???: 我在网上找不到, 能给一个 Link 吗?: 如果我用T-mobile prepaid, 也可以另外申请 2GB:10$/线/月 吗?
y*a2012-03-27 07:0311 楼嗯,到时候用这个【在 y**i 的大作中提到】: 用stl扩展库里的hash_map: #include : ...: stdext::hash_map<...> ...;
d*a2012-03-27 07:0312 楼去了ms LA WESTFIELD LIFE 店 12点半到的 1点出来的 只登记了信息 说6 个周后拿手机人不少 但是等的比较轻松 有位子坐 可以上网 里面有wifi50% 是中国人
h*62012-03-27 07:0313 楼不错,确实挺好用的。hash_map用法和map差不多,hash_set用法和set差不多。随便写了一个找数组中和为指定数的程序。#include pair GetSumPair(int* x, int n, int sum){stdext::hash_set S;pair result(-1, -1);for(int i=0; i{stdext::hash_set::iterator it = S.find(sum-x[i]);if(it == S.end())S.insert(x[i]);else{result.first = *it;result.second = x[i];break;}}return result;}
l*r2012-03-27 07:0314 楼seems you never used it up, after the limit is edge, it can't be 3G【在 u****d 的大作中提到】: 可以wifi上网.: 他家的2GB, 5GB计划都是unlimited (头2GB、5GB用的是4G网络,之后的是3G网络);: 200M计划是固定的.: 2GB:10$/线/月: 5GB: 20$/线/月.
y*a2012-03-27 07:0315 楼学习了【在 h**6 的大作中提到】: 不错,确实挺好用的。hash_map用法和map差不多,hash_set用法和set差不多。随便写: 了一个找数组中和为指定数的程序。: #include : pair GetSumPair(int* x, int n, int sum): {: stdext::hash_set S;: pair result(-1, -1);: for(int i=0; i: {: stdext::hash_set::iterator it = S.find(sum-x[i]);
S*I2012-03-27 07:0316 楼问题是这个现在还不是标准,你这个代码在GCC下就通不过编译。【在 h**6 的大作中提到】: 不错,确实挺好用的。hash_map用法和map差不多,hash_set用法和set差不多。随便写: 了一个找数组中和为指定数的程序。: #include : pair GetSumPair(int* x, int n, int sum): {: stdext::hash_set S;: pair result(-1, -1);: for(int i=0; i: {: stdext::hash_set::iterator it = S.find(sum-x[i]);
y*a2012-03-27 07:0318 楼自己回一下这个,给平时用不到hash_set的人,在GCC#include using namespace __gnu_cxx;【在 D*******a 的大作中提到】: hash_map is in GCC.
l*e2012-03-27 07:0319 楼tr1::unordered_map【在 y*****a 的大作中提到】: 弱问如果面试的时候说要用hash table又用c++答题的话,怎么办?: STL没有hashtable啊,能说用map代替吗?
y*a2012-03-27 07:0320 楼发现这个默认的hash function只有少数几种type,比如string就得自己写一个hash function了。。【在 h**6 的大作中提到】: 不错,确实挺好用的。hash_map用法和map差不多,hash_set用法和set差不多。随便写: 了一个找数组中和为指定数的程序。: #include : pair GetSumPair(int* x, int n, int sum): {: stdext::hash_set S;: pair result(-1, -1);: for(int i=0; i: {: stdext::hash_set::iterator it = S.find(sum-x[i]);
K*g2012-03-27 07:0321 楼很奇怪,既然hashtable一般与hash fuction有很大关系,而且避免collision的方法有很多种,如果提供一个统一的hash_map的接口的话,怎么定义hash function和避免collision呢?【在 h**6 的大作中提到】: 不错,确实挺好用的。hash_map用法和map差不多,hash_set用法和set差不多。随便写: 了一个找数组中和为指定数的程序。: #include : pair GetSumPair(int* x, int n, int sum): {: stdext::hash_set S;: pair result(-1, -1);: for(int i=0; i: {: stdext::hash_set::iterator it = S.find(sum-x[i]);