s*******u 发帖数: 220 | 1 赞,恭喜~~~
并问问牛人的解法...
1) given URLs, find the most frequent one
time complexity, compare with other solutions.
我只能想到hashmap加counter,有没有更好的?
whether string S3 is a shuffle of S1+S2?
不太明白shuffle的意思,cc上有道题是两xy是yxyx的substring,不知道是不是这个
意思~~
print n parenthesis是啥意思?是()()()还是((()))之类的?这道题怎么玩?
大谢大谢哈~~~ |
|
S********t 发帖数: 3431 | 2 not sure if it's impossible for O(N) time + in-place, but it's definitely
non-trivial even for a special case of "in-shuffle" (perfect shuffle), as in
the paper:
http://arxiv.org/pdf/0805.1598.pdf
on
possible, |
|
l*n 发帖数: 529 | 3 你这么做应该是对的,反正java的shuffling就是knuth shuffle。也许他想要的是你提
到knuth的大名? |
|
t*********h 发帖数: 941 | 4 shuffle和random sample还是不一样的 我感觉shuffle的话是给出一个random
permutation 这个lottery号码有什么限制没有 |
|
f******h 发帖数: 45 | 5 也找工作了一段时间了,从版上学了很多,上周G家面完了,求个bless。
之前的一些都挂了,还在继续找其他的。等定下来之后一定发面经回报本版。
谢谢大家啦!!
1. http://www.mitbbs.com/article_t/JobHunting/32005597.html
1) Implement a simple calculator (+,-,*,/);
2) Implement "+1" for a large integer;
3) How to match Ads to users;
4) How to extract useful information from a forum webpage (list all
kinds of useful signal you can think of)
5) How to detect the duplicate HTML pages (large scale);
6) Find all the paths between two places on Google map;
7)... 阅读全帖 |
|
l***i 发帖数: 1309 | 6 关于自己写Hashtable/HashSet/HashMap,
通常书上都说table size要用个prime number来减少collision的机会,但是rehash以
后怎么选择下一个prime number啊。
我看table size在java src的HashMap里面就是16, 32, 64, ...
当然java src比较NB的shuffle了hashcode所以用2^k做table size不会导致很多
collision。这么搞的另外一个bonus就是mod很快。有没有大牛解释一下java src里面
的bit shuffle?
刚看了OP的更新,多个机器可以带着网卡地址或者ip什么的partition。不过加机器的
时候就痛苦了,从3台机器到5台机器,好多已经存好的element又要重新分到对应的机
器去。 |
|
m*****n 发帖数: 2152 | 7 昨天被问了一道老题. array={a1, a2, ..., an, b1, b2, ..., bn}变成 {a1,bn,a2,
bn-1,...,bn,a0},要求时间复杂度O(N),空间O(1).
当时根本不会,我所知道最快的算法是类似quick sort的方法,要O(NlogN), 这个O(N)怎
么做? 我记得以前有人贴过,找不到了.
还有不用random, time种子什么的, 怎么给shuffle任意一个数组,
大概就是
void shuffle(int A[]){
}
每次出来的 A 的结果不一样. |
|
d********w 发帖数: 363 | 8 硅谷最火的高科技创业公司都有哪些?
在硅谷大家非常热情的谈创业谈机会,我也通过自己的一些观察和积累,看到了不少最
近几年涌现的热门创业公司。我给大家一个列表,这个是华尔街网站的全世界创业公司
融资规模评选(http://graphics.wsj.com/billion-dollar-club/)。它本来的标题是billion startup club,我在去年国内讲座也分享过,不到一年的时间,截至到2015年1月17日,现在的排名和规模已经发生了很大的变化。首先,估值在10Billlon的达到了7家,而一年前一家都没有。其次,第一名是中国人家喻户晓的小米,第三,前20名中,绝大多数(8成在美国,在加州,在硅谷,在旧金山!)比如Uber, Airbnb, Dropbox, Pinterest. 第四 里面也有不少相似模式成功的,比如Flipkart就是印度市场的淘宝,Uber与Airbnb都是共享经济的范畴。所以大家还是可以在移动(Uber),大数据(Palantir),消费级互联网,通讯(Snapchat),支付(Square),O2O App里面寻找下大机会。这里面很多公司我都亲自面... 阅读全帖 |
|
S********t 发帖数: 3431 | 9 maybe he was expecting good candidate to respond "I remember there was a
research paper on this..."
I recall there was another in place shuffle problem: shuffle a1b1a2b2 ...
anbn into a1a2... b1b2...
in O(n) time
There was also a paper to solve it
I would advise you to complain to your recruiter, at least let them know
this problem was not appropriate (unreasonably difficult) and why. Maybe
your interviewer was actually stupid enough to have a wrong solution in his/
her own mind. |
|
t***h 发帖数: 2924 | 10 【 以下文字转载自 USANews 讨论区 】
发信人: willhung (黄威廉), 信区: USANews
标 题: 黑人学校和黑人世界的真相 - Chris Jackson (转载)
发信站: BBS 未名空间站 (Tue Dec 22 04:08:43 2015, 美东)
发信人: kayaker (霜晨の月), 信区: Military
标 题: 黑人学校和黑人世界的真相 - Chris Jackson
发信站: BBS 未名空间站 (Mon Dec 21 22:28:09 2015, 美东)
What is it Like to Teach Black Students?
by Christopher Jackson
Until recently I taught at a predominantly black high school in a
southeastern state. The mainstream press gives a hint of what conditions are
like in black schools, ... 阅读全帖 |
|
B****o 发帖数: 1393 | 11 http://blog.sina.com.cn/warrenwang2008
美国中文投资网和全球二元期权著名经纪券商合作,金融团购开户,就送本金的50%到
100%,并免费赠送最新Macbook、iPhone4S、iPad2和iPod shuffle。
例如,开户存入2万美金,立即返利2万美金,并赠送Macbook+iPhone4S+iPad2+iPod
shuffle;
1.5万美金以上,返利50%,送iPhone4S+iPad2;
1万美金以上,返利50%,送Macbook;
注:返利有交易限制。
投资品种包括:美股,美国指数,上证指数,恒生指数,外汇,黄金,商品期货等。 |
|
c****g 发帖数: 3893 | 12 你骂起人来挺可爱的嘛。lol
你这个multi-linked list 可以给G家当面试题了。
你老板看到你们shuffle 过去shuffle过来的肯定
捂着被窝笑翻了。 |
|
e*****s 发帖数: 55 | 13 【 以下文字转载自 Apple 讨论区 】
发信人: endless (endless), 信区: Apple
标 题: 问问大家关于ipod shuffle
发信站: BBS 未名空间站 (Sat Aug 7 20:01:09 2010, 美东)
我的UA的里程数要过期了。想换个mp3.我大概有10000多点,可以换的就是ipod
shuffle 4G的或者是8G的Philips GoGear Ariaz MP3 Player
不知道这两个哪个更好点啊?
我要求不高,就是想运动的时候可以听听歌而已,电池能用的时间长点的,另外就是可以
听国内网站上下载的歌。
谢谢大家。 |
|
w****1 发帖数: 4931 | 14 I truly feel that in order to run faster, just running more isn't enough.
For someone like me, 5'10, not particularly long legs, there is a
significant difference in the running form of sub 6:00 pace compared to over
6:40 pace. In order to go faster, it is not sufficient to maintain a "
marathon shuffle". You will end up having to shuffle your legs so fast that
it lowers the overall efficiency. It seems to be important to raise the knee
high toward the front, and kick the heels high in the back |
|
L********9 发帖数: 85 | 15 I bought an ipod shuffle last year. It has been great. I don't like
anything strapped on my arm or wrist when I run, so the little shuffle is a
good choice. You can't exactly choose your song since there is no screen,
but as long as you upload something you like, you're good to run. |
|
w****1 发帖数: 4931 | 16 I was woken up at 2am by a thunderstorm. That's just fucking great. If I
were at home, I would not want to
spend a day out in that weather. But I was in a motel in Gorham, NH, on the
north side of White Mountains.
I had planned to run for an entire day, and the thunderstorm isn't going to
change that.
I got up at 4am, left my keys in the room, grabbed my stuff and shut the
door. It's just me and my
backpack now. My headlamp and GPS were on. I needed my 305 not to keep track
of the pace but to lo... 阅读全帖 |
|
i**t 发帖数: 12 | 17 I put my keys on the wire for the earphones on my ipod shuffle, and use the
clip of the shuffle to hold the keys.
Also have trouble in carrying a phone while running... |
|
b***i 发帖数: 10018 | 18 我还记得这篇running form makeover
http://runningtimes.com/Article.aspx?ArticleID=19948
In my analysis of Paige’s pre-makeover form, I noticed a few key faults:
2. Her shortened, shuffling stride is at least partially due to a very, very
high stride rate. Most experts suggest that 180 steps per minute is optimal
.
Reviewing video (above) of Paige training, racing a 5K, and competing during
the World Championship Marathon last August revealed that her stride rate
totaled 200-215 steps per minute. That’s... 阅读全帖 |
|
|
a*****3 发帖数: 10373 | 20 什么时候用cross step,前叉还是后叉,这些问题这几天我特别留意了许多video,在加上
我的体会就是:
- 如果你准备击球,譬如移到反手位用正手,或网前后退打overhead,第一步你可以用后
叉cross step,之后就用shuffle step.
- 如果你击球完毕,要移回中间,第一步你可以用前叉或后叉cross step,之后就用
shuffle step. |
|
r******n 发帖数: 1665 | 21 我的四分钱:
1. 楼主的正手引拍.....感觉好象没有把肌肉拉开。看上去转肩很充分,但是左手和
右手夹着自己的身体torso,所以并没有蓄力的样子。
2. 好象从来没有跳步。比如1:08的反手截击。应该有一个跳步停顿调整重心。不然很
容易被穿越。另外底线rally也没有跳步或者至少下蹲的调整。所以在3缺1的录像里
你脚步看上去很busy。
3. 你在底线用并步shuffle step很多。在长距离跑动中效率不是很高。不过你对手的
球更慢。只是效率问题。Nick的一个录像好象专门讲过。
4. 你发球的握拍好象是东方式的。1:30你打高压用的好象也是东方式握拍。(第一
个高压和第二个高压的调整你也用的是向后的shuffle step。原因是你没有square the
feet。比较高效的应该是侧身,然后交叉步。应该两步就到位了。) |
|
c****e 发帖数: 46 | 22 有两句估计很多人很耳熟。
" I am sexy and I know it...."
"everyday I am shuffling...shuffling..." |
|
b*********s 发帖数: 6757 | 23 I see that you have 2 lessons per week, but I don't see you devote the time
to work on those lessons. Does your friend help you work on tennis, or do
you just play tennis with them?
You can also change one of the long runs to more tennis drill session. Such
as 3 sets of 30 second line to line side shuffles, 3 sets of 30 second
shuffle step in-front and behind the line etc.
Lastly, you could change one of your private lesson to or add a group lesson
session. You should definitely get more aerobic... 阅读全帖 |
|
b*e 发帖数: 3845 | 24 正手遇到短球是倒底用什么样的Footwork跑到最合适的位置去击球。是侧身Shuffle,
还是侧身Cross Over Shuffle?最后击球前是Close Stance Hopping step对不对? 高
手们的有什么体会? |
|
b*********s 发帖数: 6757 | 25 turn and run around not a straight line, even if it's straight line, turn
first by take first step with left leg, cross over in the front with right,
then shuffle shuffle adjust etc.... you have ALOT more time than you think.
But if the short is really short, like your contact will be way inside the
service line, you can just run through those. |
|
b*********s 发帖数: 6757 | 26 球近也可以, 只是不需要爆发性奔跑, 可以右脚在前shuffle shuffle, |
|
b*********s 发帖数: 6757 | 27 你分析的很正确, 我和我的tennis buddy 分享打高手的经验总结就是我们split 太晚,
从一开始的慢小半步就在开始追赶导致慢慢球就开始出浅, 被调动的满场跑。这只能
不断的提醒自己和保持和高手对打(they makes you pay where 4.5s you can still
get back in the point ). 还有就是see things ealier.... 不容易练啊
你的第二观点和第一点有一定的联系并且和我的步伐问题有关。我认为我过多的small
shuffle steps 了, 有些shuffle 完全该大些, 基本到位后有时间再小碎步调整。 由
于到位晚整体的挥拍timing 都受影响。
还有个问题就是人不够wide 不够low. 发完球后回防也不够及时。 |
|
w***w 发帖数: 6301 | 28 http://www.pokertips.org/weekly.shuffle/archives/2007-06-24
The Joys Of Soft Competition
THE WEEKLY SHUFFLE, 2007-06-24, by Ozone
For American poker players, online poker options are limited thanks to
former United States Senator Bill Frist, who pushed through the Unlawful
Internet Gambling Enforcement Act. The bill resulted in many online poker
rooms, such as Party Poker and Titan Poker, no longer offering their real-
money games to Americans. The few online poker rooms that still service US
pl |
|
f*****g 发帖数: 15860 | 29 40 hands/hr? no way, hehe.
with shuffle machine, few chip refills/changing decks, and no old ladies, 15
-20 would be normal.
heard a conversation between dealers before, one laughed at those new
dealers at delaware park who could only deal 12 hands/hr with shuffle
machines, he said they could deal 18 hands without machine.
fast
if
I
>
the |
|
s*********k 发帖数: 1989 | 30 not very sure how much edge someone can gain this way. Say casino is using
100 decks and re-shuffle in middle(50 decks left), that case, the count(say
goes up to 10 or 15) essentially is imaginary drift(no guarantee mean
reversal in near term). That says, when the deck count goes up, the poss.
you gain edge even with high count is marginal.
Casino is using 6/8 decks and re-shuffle in middle, I beieve, it is
enough. They are not silly not to hire an math guy to study this.
board.
of |
|
p****r 发帖数: 9164 | 31 penetration(how many decks they deal before shuffle) is the most important
factor when you decide if a game is beatable or what edge you can get. A lot
of Vegas casino still deals 5/6decks now days. Most casino shuffle at 1-2
decks left.
say |
|
a***e 发帖数: 2094 | 32 I feel there's going to be another shuffle in the top latin scene...maybe
the rumors are the results of the shuffle, which is in the early stage of
development. i don't think slavik will partner with katarina.
musique, the rumors make me excited, hahaha :D
(sub-rumor; S. Ballas has planned for about two years to make the R&Y
partnership happen.) |
|
S*******e 发帖数: 1093 | 33 【 以下文字转载自 TrustInJesus 讨论区 】
发信人: SayCheese (说茄子), 信区: TrustInJesus
标 题: 听歌:迷上这个歌手的歌:Relief
发信站: BBS 未名空间站 (Sat Jun 2 15:11:58 2012, 美东)
虽然比较dark
I saw the sea come in.
I saw your good old friend.
He walked right past;
I'll never ask, I'll never ask again.
I saw the sea come in.
I saw your good old friend.
He walked right past;
I'll never ask, I'll never ask again.
I love the way you dance we can work it all out.
Don't you miss your chance;
The pain will all grow out.
Ooooooo...
I heard your g... 阅读全帖 |
|
wh 发帖数: 141625 | 34 昨天讲了一半Oliver Stone编导的《JFK》:
http://www.mitbbs.com/article_t/LeisureTime/2092735.html
除了那种对公正的执着追求、对滥用权力者的坚韧反抗,我还喜欢片中大量的文学引用
:莎士比亚,卡夫卡,海明威,Tennyson…爱拍军事片的Oliver Stone原来还是一文学
青年。我把所有引用记了下来,以便将来找机会装斯文——
《JFK》讲述新奥尔良检察官Jim Garrison把美国中央政府告上法庭,控诉本地军火贩
、慈善大使、CIA内线Clay Shaw与包括副总统Lyndon Johnson在内的政府头脑合谋刺杀
肯尼迪。猜猜片中引用最多的是什么作品?一是同样挖掘谋杀案的《哈姆雷特》,二是
讲凯撒大帝被古罗马众元老联合暗杀的《凯撒大帝》,正好都是莎士比亚悲剧。
《哈姆雷特》被引用三次:
1) Clay Shaw被叫到检察官办公室审问时满脸堆笑,全盘否认。他一出门,Jim
Garrison拍案大生气:“One may smile and smile and be a villain.” 这是哈姆雷
特骂他舅舅——... 阅读全帖 |
|
wh 发帖数: 141625 | 35 【 以下文字转载自 LeisureTime 讨论区 】
发信人: wh (wh), 信区: LeisureTime
标 题: 【电影】《JFK》的文学引用
发信站: BBS 未名空间站 (Thu Nov 2 21:32:32 2017, 美东)
昨天讲了一半Oliver Stone编导的《JFK》:
http://www.mitbbs.com/article_t/LeisureTime/2092735.html
除了那种对公正的执着追求、对滥用权力者的坚韧反抗,我还喜欢片中大量的文学引用
:莎士比亚,卡夫卡,海明威,Tennyson…爱拍军事片的Oliver Stone原来还是一文学
青年。我把所有引用记了下来,以便将来找机会装斯文——
《JFK》讲述新奥尔良检察官Jim Garrison把美国中央政府告上法庭,控诉本地军火贩
、慈善大使、CIA内线Clay Shaw与包括副总统Lyndon Johnson在内的政府头脑合谋刺杀
肯尼迪。猜猜片中引用最多的是什么作品?一是同样挖掘谋杀案的《哈姆雷特》,二是
讲凯撒大帝被古罗马众元老联合暗杀的《凯撒大帝》,正好都是莎士比亚悲剧。
《哈... 阅读全帖 |
|
wh 发帖数: 141625 | 36 【 以下文字转载自 LeisureTime 讨论区 】
发信人: wh (wh), 信区: LeisureTime
标 题: 【电影】《JFK》的文学引用
发信站: BBS 未名空间站 (Thu Nov 2 21:32:32 2017, 美东)
昨天讲了一半Oliver Stone编导的《JFK》:
http://www.mitbbs.com/article_t/LeisureTime/2092735.html
除了那种对公正的执着追求、对滥用权力者的坚韧反抗,我还喜欢片中大量的文学引用
:莎士比亚,卡夫卡,海明威,Tennyson…爱拍军事片的Oliver Stone原来还是一文学
青年。我把所有引用记了下来,以便将来找机会装斯文——
《JFK》讲述新奥尔良检察官Jim Garrison把美国中央政府告上法庭,控诉本地军火贩
、慈善大使、CIA内线Clay Shaw与包括副总统Lyndon Johnson在内的政府头脑合谋刺杀
肯尼迪。猜猜片中引用最多的是什么作品?一是同样挖掘谋杀案的《哈姆雷特》,二是
讲凯撒大帝被古罗马众元老联合暗杀的《凯撒大帝》,正好都是莎士比亚悲剧。
《哈... 阅读全帖 |
|
s*****g 发帖数: 5159 | 37 Fashion stuff rely on taste and the person who use that. Now we mostly buy
clothhing / cosmetic / personal care stuff in local store.
Flash drive is a bit reluctant. We are back in Sep, so I think we have a
good chance to get the shuffle. Shuffle is ideal for runner, but not many
runners in Tianjin except college students. |
|
s*****e 发帖数: 21415 | 38 shuffle第一代还好。
其实shuffle用的运放很不错的,关键是电池小,为了节电,功率不行,小功率即使名
牌运放也很难和大功率抗衡的。 |
|
e*******e 发帖数: 6165 | 39 shuffle shuffle.....不是shift,也不是switch |
|
B********e 发帖数: 19317 | 40 http://evolution.berkeley.edu/evolibrary/article/0_0_0/evo_22
Sex and genetic shuffling
Sex can introduce new gene combinations into a population and is an
important source of genetic variation.
You probably know from experience that siblings are not genetically
identical to their parents or to each other (except, of course, for
identical twins). That's because when organisms reproduce sexually, some
genetic "shuffling" occurs, bringing together new combinations of genes. For
example, you might |
|
c****t 发帖数: 19049 | 41 HALF-LIVES
the first luisa rey
mystery
I
Rufus Sixsmith leans over the balcony and estimates his body’s velocity
when it hits the
sidewalk and lays his dilemmas to rest. A telephone rings in the unlit room.
Sixsmith dares not
answer. Disco music booms from the next apartment, where a party is in full
swing, and
Sixsmith feels older than his sixty-six years. Smog obscures the stars, but
north and south
along the coastal strip, Buenas Yerbas’s billion lights simmer. West, the
Pacific eternity East... 阅读全帖 |
|
l****r 发帖数: 14809 | 42 我一直听魅族,
一开始试了一下shuffle 感觉比魅族声音好,
马上吧shuffle 的耳机接到魅族上, 明显感觉魅族噪音相对大些 |
|
N******l 发帖数: 190 | 43 Shake hands with 郁闷的农民. I am also a farmer-type person. Please see my
ID. I may just be not so
depressed as you are :)
我是个新人, a common Mac end user, not a developer,
不应该充大头,but would love to make a small donation.
I am thinking about the new shuffle, a cool toy for joggling or gym workup.
I can either send a check to one of the Banzhus, let him/her handle the gift,
or directly mail the shuffle to an awardee confirmed by Banzhu.
Thanks,
-Yokel |
|
a***y 发帖数: 19743 | 44 个人认为大部分耳机连80%也发挥不出来啊
个人估计不到5%的population有能发挥出来80%以上的耳机。
iPod shuffle第一代我有后来送人了。个人感觉音质口味比较重。
所以我不确定你称Shuffle的音质好到底意味着什么。
另外团五和Apple DD In-Ear Monitor的音色风格很类似,但是团五也是低音这些口味
更重。综合起来我觉得你口味比我重。
就是
。F |
|
w****j 发帖数: 6262 | 45 http://digi.it.sohu.com/20100805/n274001642.shtml
苹果产品最新泄露:小尺寸iPad 修改版iPhone
来源:cnBeta.com 2010年08月05日09:41
我来说两句(1)复制链接打印大中小
品牌:联想 Thinkpad 惠普 东芝 戴尔 ACER 索尼 华硕 苹果 神舟 全部品牌>>
价格:5000下 5000-8000 8000-10000 10000-15000 15000上 找本本:
热门新机:苹果iPad 清华同方K47A 联想Y460 ThinkPad T410 惠普 dm4 热点: 专家在
线答疑
国外网站iLounge泄露了苹果在2010年下半年和2011年的消费电子产品计划,其中
包括新版
iPad、iPod Shuffle、修改后的iPhone等。
首先让我们来看新的iPods,预计九月份我们就能看到新版产品,最新的当然是
iPod Touch,
它类似于iPhone 4的去电话版本,而shuffle将带有1.7英寸触摸屏。iPad方面将有一个
7英寸的小
版本推出。iPhone则 |
|
s***n 发帖数: 1114 | 46 老ipod音质应该比现在的好,我记得看过一个评测,似乎是因为老的ipod没有彩色屏幕
,所以电路相对简单,底噪小好像
我觉着shuffle更适合你,既能在dock上用,又带按钮,可以在gym中选歌
事实上我看到gym里面的人很少用touch的,连nano都很少,基本都是用shuffle
mp3 |
|
a***y 发帖数: 19743 | 47 ☆─────────────────────────────────────☆
realbug (WA) 于 (Sun Dec 25 22:36:33 2011, 美东) 提到:
用一次被恶心一次。我唯一想做的就是把几个不同文件夹里的照片放到ipad里,先在一
个目录下选了几个子目录,sync,然后换个地方,再选几个子目录,再sync,到ipad里
一看,我日,第一次sync的全都被删了,天下有这么脑残的软件吗?
☆─────────────────────────────────────☆
cheungche (你不乖) 于 (Sun Dec 25 23:23:58 2011, 美东) 提到:
haha, agreed
☆─────────────────────────────────────☆
labiker (Paul) 于 (Mon Dec 26 03:46:37 2011, 美东) 提到:
还不能正常显示中文,不知道怎么fix
★ 发自iPhone App: ChineseWeb - 中文网站浏览器
☆────────────────────... 阅读全帖 |
|
s*********d 发帖数: 94 | 48 假如我在icloud或者google drive上有一个folder里有一些mp3,用什么app能shuffle
听这些mp3?
以前我用一个中国人的app叫gdrive,但现在这个shuffle功能不能用了。 |
|
D******y 发帖数: 3780 | 49 【 以下文字转载自 Programming 讨论区 】
发信人: DrDonkey (DrDonkey), 信区: Programming
标 题: 问个best practice
发信站: BBS 未名空间站 (Wed Jan 7 20:53:45 2009), 转信
有一个table Products.
要求用户在web上搜索后返回随机顺序, 而且显示的时候要求带paging
请问我该怎么作?
是该一次把数据都从DB读出来,Populate到Product的object里面, 然后放到一个Arra
yList里面,Shuffle, 再从ArrayList里面提取objects来implement paging? 或者只把
ProductID放到Session里面,不过这要是Products table太大,也不太现实阿
还是该一次只读一部分数据(Items Per Page), 这样是不是必须用TempTable了阿(
SELECT
, then shuffle, then insert into temptable), 那岂不是每个用户session都要一个
tem
ptab |
|
l*s 发帖数: 783 | 50 问题是如果每次分页前先shuffle所有结果,那么用户选取第一次选取第二页的内容将
和第二次选取第二页的返回结果不一样。
你的第一种方法(shuffle所有结果进cache然后分页)没有问题。我只是不太清楚我是
否理解了你第二种方法
a |
|