Redian新闻
>
LG g4 好像不能用account credit买断吧?
avatar
LG g4 好像不能用account credit买断吧?# PDA - 掌中宝
s*e
1
转帐方便的那种
Boa的business checking不能转帐,bill pay的卡号要手动一个个输入,不能copy and
paste。实在想不到他家的business checking有啥好处。
大家都用哪个银行的?
avatar
a*e
2
这种用dfs的时间复杂度,总是绕不清楚。
code如下,
分析时间复杂度哪种比较对?
一种是dfs一共执行了n!次,每次有n^2, 所以总共是O(n!n^2).
另一种是T(n)= nT(n-1) + n^2, 所以是? 我也不知道了。
////////////////////////////////////
bool PosOK(int col[], int idx){
for ( int i=0; i< idx; i++){
if (col[i]== col[idx] || (idx-i)== abs(col[idx] - col[i] ) )
return false;
}
return true;
}
void dfs2(int col[], int idx, vvs & res, int n){
//when there is a solution
if (idx==n){
string s(n, '.');
vs tmp(n, s);
for (int i=0; i< n; i++)
tmp[i][col[i]] = 'Q';
res.push_back(tmp);
}
//try different position for queen in row idx
for (int i=0 ;i < n; i++){
col[idx] = i;
//test if it is ok to put queen at position i
if (PosOK(col, idx) ){
dfs2(col, idx+1, res, n);
}
}
}
vvs PlaceQueen2(int n){
int col[n];
vvs res;
dfs2(col, 0, res, n);
return res;
}
avatar
u*p
3
还是先用自己的信用卡买断,然后关户口,再收支票?谢谢。
avatar
J*u
4
Co-ask.
Hate Boa.

and

【在 s*******e 的大作中提到】
: 转帐方便的那种
: Boa的business checking不能转帐,bill pay的卡号要手动一个个输入,不能copy and
: paste。实在想不到他家的business checking有啥好处。
: 大家都用哪个银行的?

avatar
l*a
5
每次n2从哪里来的?

【在 a********e 的大作中提到】
: 这种用dfs的时间复杂度,总是绕不清楚。
: code如下,
: 分析时间复杂度哪种比较对?
: 一种是dfs一共执行了n!次,每次有n^2, 所以总共是O(n!n^2).
: 另一种是T(n)= nT(n-1) + n^2, 所以是? 我也不知道了。
: ////////////////////////////////////
: bool PosOK(int col[], int idx){
: for ( int i=0; i< idx; i++){
: if (col[i]== col[idx] || (idx-i)== abs(col[idx] - col[i] ) )
: return false;

avatar
o*a
6
同问怎么操作
avatar
a*e
7
一个是for loop,还有一个是PosOK这个function
avatar
Q*r
8
同问!
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。