Redian新闻
>
Tmobile 的family plan 没有买数据 能上网么
avatar
Tmobile 的family plan 没有买数据 能上网么# PDA - 掌中宝
y*a
1
弱问如果面试的时候说要用hash table又用c++答题的话,怎么办?
STL没有hashtable啊,能说用map代替吗?
avatar
d*a
2
怎么开通 多少钱?按流量算还是怎么算~
想去ms 比一下
avatar
t*j
3
这个到时候和面试官商量,大概表示出意思就行了。

hashtable

【在 y*****a 的大作中提到】
: 弱问如果面试的时候说要用hash table又用c++答题的话,怎么办?
: STL没有hashtable啊,能说用map代替吗?

avatar
u*d
4
可以wifi上网.
他家的2GB, 5GB计划都是unlimited (头2GB、5GB用的是4G网络,之后的是3G网络);
200M计划是固定的.
2GB:10$/线/月
5GB: 20$/线/月.

【在 d*******a 的大作中提到】
: 怎么开通 多少钱?按流量算还是怎么算~
: 想去ms 比一下

avatar
c*7
5
自己定义个简单的hash table,其实用数组+映射就行。复杂的可能需要用map了。
avatar
b*e
6
打611客服开通。
另外,如果不想用数据,可以随时取消。这个时候价钱按照使用的天数计算。比如用了
3天2GB的服务,那么就收1$。
avatar
y*a
7
就是说只管映射过去,不处理collision?

【在 c*********7 的大作中提到】
: 自己定义个简单的hash table,其实用数组+映射就行。复杂的可能需要用map了。
avatar
s*y
8
2GB:10$/线/月???
我在网上找不到, 能给一个 Link 吗?
如果我用T-mobile prepaid, 也可以另外申请 2GB:10$/线/月 吗?
avatar
y*i
9
用stl扩展库里的hash_map
#include
...
stdext::hash_map<...> ...;

【在 y*****a 的大作中提到】
: 弱问如果面试的时候说要用hash table又用c++答题的话,怎么办?
: STL没有hashtable啊,能说用map代替吗?

avatar
y*a
11
嗯,到时候用这个

【在 y**i 的大作中提到】
: 用stl扩展库里的hash_map
: #include
: ...
: stdext::hash_map<...> ...;

avatar
d*a
12
去了ms LA WESTFIELD LIFE 店 12点半到的 1点出来的 只登记了信息 说6 个周后拿手机
人不少 但是等的比较轻松 有位子坐 可以上网 里面有wifi
50% 是中国人
avatar
h*6
13
不错,确实挺好用的。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;
}
avatar
l*r
14
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$/线/月.

avatar
y*a
15
学习了

【在 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]);

avatar
S*I
16
问题是这个现在还不是标准,你这个代码在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]);

avatar
D*a
17
hash_map is in GCC.

【在 S**I 的大作中提到】
: 问题是这个现在还不是标准,你这个代码在GCC下就通不过编译。
avatar
y*a
18
自己回一下这个,给平时用不到hash_set的人,在GCC
#include
using namespace __gnu_cxx;

【在 D*******a 的大作中提到】
: hash_map is in GCC.
avatar
l*e
19
tr1::unordered_map

【在 y*****a 的大作中提到】
: 弱问如果面试的时候说要用hash table又用c++答题的话,怎么办?
: STL没有hashtable啊,能说用map代替吗?

avatar
y*a
20
发现这个默认的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]);

avatar
K*g
21
很奇怪,既然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]);

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。