由买买提看人间百态

topics

全部话题 - 话题: decode
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
a**u
发帖数: 8107
1
来自主题: Wisdom版 - [合集] 感恩节师姐棒喝
☆─────────────────────────────────────☆
SeeU (See you) 于 (Fri Nov 26 21:14:34 2010, 美东) 提到:
感恩节到师姐家吃晚饭(她开玩笑说我去应供),师姐刚从澳洲禅修一月归来,气色极佳,脸色红润,连皱纹都似乎消失了。师姐得了三禅,习性大变,过去狂爱华衣美食呼朋引伴玩耍,话痨一个,是个气场强大的女人,家里几个男人都乖乖听她的。现在只想禅悦为乐,平日闭门谢友
贝虬纾眯兄晃蓿路蟀胨腿耍约赫掌既恿耍バ吹奈恼乱捕簟!刚庑┒际窃銮课野矗静换岽纯炖帧!故闳缡撬
师姐听我说最近不想禅修,想找女友,直呼「Mara 已经在你脑里建立了根据地。你要小心。」「不过 Mara 其实也很好对付,阿含经中 Mara 一旦被识破,就说 "The monk knows me." and disappears.」
「你现在不要急著找女友。把精力放在修禅定,得到禅悦后你就不会想找女友了。维持好的 relationship 或婚姻都是很累的事,两个人要互相迁就。你自己的烦恼都无法断除,LP 还指望你替她排忧解难。两个充满烦恼的凡夫纠缠在一... 阅读全帖
W**N
发帖数: 1037
2
来自主题: Wisdom版 - 正见文.痴睡眠
NOVA 有一个科教片《Dogs Decoded》讲狗是如何从[狼]变成人类的朋友的和人类有
交流的。
www.youtube.com/watch?v=rjhOiBFOwX0 [youtube ]
Program Description
"Dogs Decoded" reveals the science behind the remarkable bond between humans
and their dogs and investigates new discoveries in genetics that are
illuminating the origin of dogs—with surprising implications for the
evolution of human culture. Other research is proving what dog lovers have
suspected all along: Dogs have an uncanny ability to read and respond to
human emotions. Hu... 阅读全帖
g****t
发帖数: 31659
3
来自主题: Apple版 - Jobs说的太多了
(问题在于flash的硬件解码不行.仔细看第一段末尾和第二段第一句.
Flash的硬件解码"is not implemented in mobile chips."
Falsh如果只能软件解码,当然巨耗电.这个问题不解决,软件玩什么花样都没用)
To achieve long battery life when playing video, mobile devices must decode
the video in hardware; decoding it in software uses too much power. Many of
the chips used in modern mobile devices contain a decoder called H.264 – an
industry standard that is used in every Blu-ray DVD player and has been
adopted by Apple, Google (YouTube), Vimeo, Netflix and many other companies.
g****n
发帖数: 40
4
来自主题: Database版 - Help on SQL statement
select productID,
max(LatestPriceof1999) LatestPriceof1999,
max(LatestPriceof2000) LatestPriceof2000,
max(LatestPriceof2001) LatestPriceof2001
from (
select productID,
decode(to_char(createdate, 'YYYY'), '1999', price, null) LatestPriceof1999,
decode(to_char(createdate, 'YYYY'), '2000', price, null) LatestPriceof2000,
decode(to_char(createdate, 'YYYY'), '2001', price, null) LatestPriceof2001
from product
where (createdate, productid) in (
select max(createdate
c**t
发帖数: 2744
5
来自主题: Database版 - 包子题 (1st answer 100新币)
too much union.. my solution:
CREATE OR REPLACE FORCE VIEW cogt_view
(DT, CODE, TYPES, VALUE) AS
WITH TMP AS
(SELECT DT, CODE, MAX(TYPE) over (PARTITION BY DT) as tmpType,
SUM( DECODE( TYPE, '', 0, 1) ) over (PARTITION BY DT) as tmpCnt
FROM TBL)
select DT, REPLACE(CODE, 'M', tmpType) as CODE, tmpType, VALUE from TMP
UNION ALL
select DT, REPLACE(CODE, 'M', decode(tmpType, 'A', 'B', 'A')) as CODE,
decode(tmpType, 'A', 'B', 'A') as TYPE, 0 from TMP
p*********d
发帖数: 136
6
来自主题: Database版 - 怎么写个query 把输出变成横排.
try this
select student,
wm_concat(course_301) c301,
wm_concat(course_302) c303,
wm_concat(course_303) c303
from
(select student,
decode(course, 301, score, null) course_301,
decode(course, 302, score, null) course_302,
decode(course, 303, score, null) course_303
from the_table)
group by student;
l******o
发帖数: 2649
7
来自主题: Hardware版 - flash看video电池只能用5小时
over 4 hours是用的hardware decoder
Froyo的flash现在没有hardware decoder
如果不经过flash直接hardware decode,估计就五六个小时了。
Flash本来就做得很烂,不知道为什么这么多人喜欢舔阿三屁屁

to
that
p**i
发帖数: 688
8
来自主题: Hardware版 - 基于Realtek 1185芯片高清播放器
在HDPfans上看到的国内的高清播放器, 700-800RMB的已经标配gigabit ethernet,
ESATA,读卡器和内置WIFI
有的还支持USB3.0, 应该也能做NAS. 就是内存小点(256MB)
详细比较看这里 PDF
http://www.box.net/shared/kxahi2o3mgo22z6bhji3
或PNG
http://www.hdpfans.com/thread-16012-1-1.html
Specs from Realtek website
RTD1185

HD MPEG1/2/4, H.264, VC1, RM/RMVB, AVS Decoder with Gigabit Ethernet, PCI-E,
Card Reader, and HDMI
General Description
The RTD1185 is a highly integrated SoC for Consumer Electronics products
requiring High Definiti... 阅读全帖
k*****y
发帖数: 744
9
来自主题: Hardware版 - DXVA 1080p鸭子飞测试
3840 x 2160,243Mbps的鸭子?硬解打不开。
2***[email protected]
CoreAVC Video Decoder
Frame Rate: Avg 16, Min 13, Max 20
CPU Usage: Avg 58, Min 55, Max 74
ffdshow Video Decoder
Frame Rate: Avg 24, Min 21, Max 27
CPU Usage: Avg 88, Min 81, Max 94
Microsoft DTV-DVD Video Decoder
不能打开
看样子超4.5G还是会丢帧。
d**d
发帖数: 389
10
来自主题: Programming版 - 请教一个C++的设计问题
不考虑性能的问题,现在的问题是怎么来设计C++ class来解决这个查找decoder的的问
题。
基本上是有一个interface class,然后各个decoder来实例这个interface,但是怎么让
主程序来查找哪个decoder能用了解码的问题,我就没有头绪了。
w***g
发帖数: 5958
11
来自主题: Programming版 - 请教一个C++的设计问题
我有个项目跟你这个有点像。接受HTTP上传的一个二进制对象,
然后用libmagic检测对象MIME。每个支持的对象都有一个类(Tagger)进行识别。
然后维护一个map字典把MIME字符串映射到不同的Tagger实现。
https://github.com/aaalgo/stags/blob/master/src/stags.h
C++最恶心的是各种decoder没法自动register,得手工加一行才行。
如果要自动register,得每个decoder编译成一个.so文件,然后启动的时候
扫描plugin目录加载所有的.so文件。
还有一个办法就是约定命名规则,凡是symbol name match某pattern的就认为
是一个decoder。然后程序起动后扫描symbol table,(dlopen传入NULL则是
open程序自己)。这种做法可以把所有的东西全都编译成一个可执行文件。
不过我没见人用过这种方法。相比之下往初始化函数里加一行要容易得多。
d**d
发帖数: 389
12
来自主题: Programming版 - 请教一个C++的设计问题
我觉得要是用factory pattern来做的话,factory需要去分析header,然后从分析结果
里面来决定产生哪个decoder。这样的话实际上是把decoder的分析工作放到了factory
里面。将来如果还要加新的decoder的话,还要去改factory那方面的代码,不好维护。
不知道是不是你有更好的想法?
p******g
发帖数: 347
13
来自主题: Programming版 - 请教一个C++的设计问题
扫描目录有什么难得。直接用boost。 你 dlopen 一个和多个 so 有什么区别?
或者你写一个配置文件里面列出来所有的decoder function 的名字, 所在的so文件。
程序加载的时候就毒一下这个文件dlopen 然后找到所有的decoder集中放一起就完了。
这个问题和c艹 真的没啥关系。c/c艹 没什么大区别

decoder
g*****y
发帖数: 7271
14
来自主题: Programming版 - 请教一个C++的设计问题
这就是register新的decoder的部分吧?C/C++也不用改code啊,
如果是dll的话,只要把新的decoder的dll放到指定目录,
就可以自动load了。
如果静态连接,新decoder的文件里需要register它自己。
不用改别的文件。有很多通过继承来完成自动register的
做法。reflection在这上面没什么优势吧。
d********g
发帖数: 10550
15
来自主题: Programming版 - 这个简单的post.py怎么不work
正确的payload应该长这样:
PREUTMPKEY:xxxxxx
ITEM:1
type:(unable to decode value)
piece:1
msg:(unable to decode value)
submit:(unable to decode value)
和你程序里的payload比,多了那个PREUTMPKEY的CSRF key
MITBBS真土,PREUTMPKEY什么垃圾名字
g****d
发帖数: 3461
16

why don't you search on google first?
my search results showed someone asked
the same question on some dvd hacker bbs
but no answer. Even dtsonline doesn't
list any software decoder(not even a software
dvd decoder that's capable of doing that).
I guess the answer is no. Either DTS
people are charging two much money for
license or software dvd people don't see
the market. The funny thing is, that
only standalone AC3 decoder available is the free
ac3dec.
Maybe you can hack your DTS player to g
s******t
发帖数: 15
17
【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: surmount (我是一片云), 信区: Linux
标 题: 谁能帮我解决这个程序设计问题?
发信站: The unknown SPACE (Sun Oct 13 08:06:20 2002) WWW-POST
我现在有两个程序, 一个是网络的client, 负责接收从网络过来的数据,(可以是任何格式
的数据)并在硬盘上形成一个文件
一个是video的解码器(decoder),负责从硬盘上读入一个压缩好的视频文件,并解压存为另
一个文件
现在我想把这两个程序拼到一起, 也就是编译为一个程序, 使得我在server端发出的视频
压缩文件能实时的在client端得到解码
我现在的想法是:
1. 原来的client和decoder程序都是从硬盘读取或者是存入硬盘的,为了使两个程序连起
来,我想使用pipe, 就是说,client把接收到的东西写入pipe(而不是写成文件存到硬盘),
而decoder从这个pipe读入数据(而不是原先的从硬盘读入)
2. 为了使client收到的数据得到即时解码, 必须使client和dec
b**d
发帖数: 7
18
When one buys a cable service, the cable company will install special decoder
in his apts. Usually the terminal box is outside the apt but is very easy to
find. Different decoder will determine which kind of service he can get, such
as basic plan, standard plan or premium....
The decoder can send some feedback and the cable company can check it
sometimes.
d*******n
发帖数: 369
19
我现在找一个AAC decoder, 你知道AAC有若干个profile,并且基于一个profile又有
几个变种,像AAC, AAC HE, AAC HE v2都基于AAC-LC。
1. 有没有一个decoder可以搞定所有的AAC。收费的也无妨。要有source code或者至少
API和library。
2. 如果没有此神器,坡脚的decoder见到不认识code能不能ignore然后继续产生输出,
效果可能差些。(我猜可能不行)。
望指点一二
t****e
发帖数: 527
20
来自主题: Psychology版 - Re: ZZ Assessment Quiz: How Smart Are you?
There are two components in English Reading, word identification (or word
decoding, word recoganiztion) and reading comprehension. The first phase
of reading is to decode the words. Many readers have difficulty decoding
the words, they can't read or read very slow or with heavy error rates which
could interfere with the comprehension. This group of readers is also
called dyslexia. In English, Spanish, and German, phonological process
including phonological awareness ( the awareness of the englis
w*******y
发帖数: 60932
21
Must register for Panasonic Purchase Program!
1. Go to epp.panasonic.com (no www)
2. Click on Sign Up
3. Use group ID NXT777
4. Log in and get sweet discounts! Woot!
Inside the site, look under Audio>Home Theater Systems>SC-BT230
Price is $230 + tax with free shipping!
This system has a Blu-Ray player while the Wal-Mart and ShopOnkyo home
theater deals only have a DVD player. Great match for your new BF TV deal!
Solid 4-star ratings on Amazon:
Link:
http://www.amazon.com/Panasonic-SC-BT23... 阅读全帖
w*******y
发帖数: 60932
22
This was front page a week or so ago at $424 and a lot of people wanted $400
. Here you go. Great network receiver at the $400 range. This plays
internet music directly from the receiver once you plug in internet access.
No computer needed. Two independent zones make another great option. Plus
there are 6 HDMI inputs which is well more than most can use.
Link:
General
Brand
ONKYO
Type
Receiver
Model
HT-RC270
Channels
7.2-Channel
Processing
Power Output
Front L/R
- 10... 阅读全帖
w*******y
发帖数: 60932
23
Jamo S426HCS3 5pcs Home Theater Speaker System - by Klipsch & Denon AVR-1911
7.1 Ch A/V Home Theater Receiver for $626.00 at 6ave.com, free shipping and
no tax for most.
Link:
http://www.6ave.com/shop/SickDealProduct.aspx?sku=CESAVR1911JAM
Jamo S426HCS3 5pcs Home Theater Speaker System
The Jamo S 426 HCS 3 is the newest addition to to Jamo's constant commitment
to value-for-money loudspeaker systems. With the stylish, contemporary
industrial design, these speakers easily blend into the modern li... 阅读全帖
w*******y
发帖数: 60932
24
Newegg has the Onkyo HT-RC360 receiver for $279 with promo code EMCJJKB83
Link:
http://www.newegg.com/Product/Product.aspx?Item=N82E16882120178
Processing
Power Output
Front L/R:
100 W + 100 W (8 ohms, 20 Hz-20 kHz, 0.08%, 2 channels driven, FTC)
125 W + 125 W (6 ohms, 1 kHz, 0.1%, 2 channels driven, FTC)
Center:
100 W (8 ohms, 20 Hz-20 kHz, 0.08%, 2 channels driven, FTC)
125 W (6 ohms, 1 kHz, 0.1%, 2 channels driven, FTC)
Surround L/R:
100 W + 100 W (8 ohms, 20 Hz-20 kHz, 0.08%, 2 channels driv... 阅读全帖
p****i
发帖数: 6135
25
来自主题: _K12版 - 你们的一年级教什么压?
先说我们这的一年级都干啥了
从发回家的课程表来看,
他们一周有一次体育课, 一次音乐课, 一次science,一次library time
每天有的是reading, writing, math和social study
reading现在用的是decodable, 从K就开始的
http://www.opencourtresources.com/teaching/OCRunits/decodable_books/decodables.html
不知道是不是全国统一。
先是老师读, 孩子们跟着读, 然后老师会问一些问题,
包括phonics和阅读理解的。
decodable都非常的简单,
每本大约4-10页纸, 每张纸上1句话, 图文并茂的
重点是练习孩子的phonics和一部分词汇量。
老师经常会问的phonics question如下:
what rythms with Sam but starts with t?
老师也会问一些简单的阅读理解的问题:
比如某本书, 大意如下:
Mom makes cereal and milk
Mom makes bagel and juice.
I**A
发帖数: 2345
26
来自主题: _K12版 - 看fairy了 看fairy了
Chapter 7
Felicia led the way along a trail that was clearly made a long time ago. She
nimbly stepped over suspicious leaves and rocks. She looked behind her, and
was relieved that Alice and Annabelle were copying her movements. Then,
there was a big, big hole. Felicia backed up and took a running start. Thump
! She landed gracefully on her feet. Just as she was about to continue her
expedition, she heard a yell from Annabelle. With a thumping heart, Felicia
dared herself to turn around. Finally... 阅读全帖
c**i
发帖数: 6973
27
VOA Chinese, Aug 13, 2011.
http://www.voanews.com/chinese/news
/20110813-Ukraina-China-127651288.html
My comment:
(a) Chinese are dumb. Read this:
Ukrainian Experts Say Kyiv Correct In Selling Carrier To China. Radio Free
Europe, Aug 11, 2011
http://www.rferl.org/content/ukrainian_experts_
say_kiev_correct_in_selling_carrier_to_china/24293430.html
("Another Ukrainian military expert, retired Navy captain Myroslav Mamchak,
suggests Ukraine could have earned even more money with the ship if it had... 阅读全帖
s*******n
发帖数: 10426
28
PBS的NOV有一集讲的就是这个, Decoding Neanderthals.By NOVA, PBS
http://www.pbs.org/wgbh/nova/evolution/decoding-neanderthals.ht
Science的文章 Resurrecting Surviving Neandertal Lineages from Modern Human
Genomes
http://www.sciencemag.org/content/343/6174/1017.full
B*****e
发帖数: 9375
29
我打个岔
牛顿的力学理论/微积分 爱因斯坦的相对论
当然都很牛X 都是划时代
但都是有前奏 有铺垫 甚至有同行人:
在他们之前 已经有其他牛人 或多或少地 或强或弱地
提出了不少猜测 提到了不少可能 已经逼近问题的核心关键
呼之欲出 呼之欲出 最后牛爱这两人出来一锤定音
但另有一项划时代的大发现
(或者应该叫发明? Invention, or discovery?)
是横空出世 事前没有啥预兆的
Claude Shannon's information theory
1948年那篇文章出来 大家才被教育了
原来通讯交流 -- 在时间上的储藏 或 在空间上的传递 -- 是该这么搞的......
entropy, source coding/decoding, channel coding/decoding, encryption/
decryption,
Holy Crap.
r******u
发帖数: 281
30
来自主题: HiFi版 - HTPC和Receiver连接问题 (转载)
Is that because you pass through the DTS audio to the receiver instead of
decoding it in the PC?
Why don't you just decode it using your sound card or AC3filter and send it over to your receiver?
I actually prefer to use receiver to control the volume than PC. If the only concern is that you can't control the volume by your MCE remote, try the harmony controller. You can customize it so that you have the receiver control the volume but everything else still working with MCE.
A****B
发帖数: 335
31
HD decoder我不是很担心,因为我可以买个已经decode的BD player(我现在还没有BD
player,主要是片源太贫乏,昂贵了)。
c********n
发帖数: 4762
32
来自主题: HiFi版 - 强烈推荐AC3FILTER
以前不知道这东西有啥用处, 这次看几个DTS的MKV, LG的电视不能解码, 而且还不
PASS给HDMI, 我的电脑是连电视的, 要连RECEIVER很麻烦, 而且对老人和孩子来讲
太复杂。
当然电脑可以DECODE DTS, 输出PCM, 不过5.1变成2声道, 不好。
还有就是用软件转成AC3, 也太麻烦了, 看个片子要等几个小时转好。
最好的办法就是DTS在放的时候直接转成AC3输出, 一直没有找到这个TRANSCODE的软件
, 最好发现在我的电脑了N年没有用过的AC3FILTER就是干这个的, 试了一下效果真是
好, 没有任何延迟, 大概30分钟会卡一下, 不知道和AC3FILTER有没有关系, 不过
对看BLUERAY没有影响,耗CPU增加4%, 不过因为显卡硬解码 (HARDWARE H264
DECODER), 看BLUERAY时CPU利用率真是低啊。
好东西。
i***e
发帖数: 9429
33
来自主题: HiFi版 - Yamaha Receiver 求建议
谢谢,记忆里Denon 的Receiver 总的来说要比Yamaha 贵,相信机子也要好过Yamaha。
一直有收到Yamaha 的伊妹儿,所以目前只对Yamaha 的 产品知道多一点。俺考虑升级
的原因是目前和为来几年一些DVD和蓝光影碟的decoding 方案对老的Receiver 来说可
能无法实现,还有就是HDMI接口的问题。至于其它的那些新功能到不是很关心,那些新
功能猜想也不会做到很全面,如果有一个HTPC的话,应该都可满足到。目前的receiver
俺用得最多的decoding设定还是最原始的纯7 channel和2 channel. 还有想请问的是
,在receiver 的后面接口,比如说 DVD 接口,数字接口和模拟接口的信号可以通过遥
控器去做手动的切换,换句话说可以接两台不同的DVD机子,一台接DVD的数字接口,另
一台接模拟接口,这个功能对俺很重要,不知道现在的Yamaha receivers 是否还保留
着这个功能。谢谢。
l*****i
发帖数: 176
34
谢谢你的回答,你说的功能雷客都符合,我又看到一个13年11月新出的gogo点歌机,不
知道这个和雷客比怎么样?
雷客云十二功能参数:
• •CPU:采用40nm工艺芯片,双核800MHZ;内存1G/DDR 1333;
• •支持VGA+HDMI VGA+LVDS VGA+CVBS,VGA+HDMI/CVBS双屏异显
• •内嵌Video decoder:Real Video,支持H.264、H.263、AVS、Divx
、VC-1,DSS-DirecTV TS等多种视频格式解码
• •内嵌Audio decoder:Real Audio;可完成MPEG1/2/3、AC3、AAC、
Vorbis;DTS、DolbyMsll、SRS、DTS-HD、Windows Media等多种音频格式的解码工作,
支持Audio SPDIF DAC output、数字无损音效频输出
• •支持HDMI高清输出720P、1080i、1080P,支持3D TV... 阅读全帖
m****u
发帖数: 3915
35
来自主题: JobHunting版 - Google intern 面经,回馈版面
两个phone interview, 各45分钟
第一个人:
1 写一个返回所有n比特格雷码的函数
函数形式 vector getGrayCode(n)
比如 getGrayCode(2), 应该返回{0,1,3,2}
2 如果一个lookup table很大,并且你有足够的内存装入这个table,但是为什么不把
这个
lookup table整个放到内存里?而是只把一部分放进去
说实话不是很明白,他的意思是cache的问题,如果把整个table放进去,可能产生更
多的cache
miss。。。
请达人解释一下这道题
3 平面上有n个点,找一条直线,使它穿过最多的点
第二个人:
1 两个sorted array A,B, 问能否从A,B中各取且只取一个数,是他们的和为x
2 有list of strings, 要求首先encode到一个string,然后再decode,恢复这些
strings,如何encode和decode
3 寻找majority element, 既从一个长度为n的数组中找出一个数,这个数的出现次数
严格大于
n/2
f****g
发帖数: 313
36
来自主题: JobHunting版 - Google intern 面经,回馈版面
What's the point for this question?
2 有list of strings, 要求首先encode到一个string,然后再decode,恢复这些
strings,如何encode和decode
g***s
发帖数: 3811
37
来自主题: JobHunting版 - 一道matrix的题目~~跪求高人
这个zoom是把每一个2×2扩大到4×4.是不是?
首先可以容易发现,这些字符串都有一个特性:把它分成前后两半,只有最后一位是不
同的。
根据这个特性,我们可以把任何一个2^n位的字符串,一一对应到一个n+1位的字符串
encode(s) = encode( s的前一半)+ s后一半的最后一位
同时,这个逆过程也是存在的。设为decode(s).具体就不列了。
那么现在我们题目可以转化成为,找f(s)的左边。
算法如下:
假设encode(s)=src=x1x2...xn
t[a]=b
t[b]=a
t[c]=d
t[d]=c
string prev(src,n) {
if (n==-1) return '' ; //最左元素的左边元素为同行最右边的;
lastChar = src[n-1];
if (lastChar=='d' || lastChar== 'b‘) return src.substring(0,n-1) + t(
lastChar);
else return prev(src.substring(0,n-1)) + t(lastChar);
}
所以,... 阅读全帖
s******k
发帖数: 3716
38
来自主题: JobHunting版 - 被thank you的fb电面面经
手快不需要5分钟
int getNumDecode(const char *str)
{
char temp[3]; temp[1] = temp[2] = '\0';
if(strlen(str) == 0) return 1;
int num = 0;
temp[0] = str[0];
if(mymap[temp)>0) // we have 1 digit decode a letter
num += getNumDecode(str+1);
if(strlen(str)==1) return num;
temp[1] = str[1];
if(mymap[temp]>0) // we have 2 digits decode a letter
num += str+2;
return num;
}
d**e
发帖数: 6098
39
来自主题: JobHunting版 - 前段时间的面试
全fail了,呵呵,没什么成功经验。
1 - medtronic, LA
recruiter打电话来的,对着单子上的技术问题语言特点一个一个问,她什么也不懂,
所以有疑问也没得商量,当然我也有几个答得不好。最后不了了之。
2 - hulu, LA
电面1,跟glassdoor上面几乎没什么区别,都是问烂的题,merge sort, LRU, 还有两
个算法,给code问是做什么的,我遇到的是anagram和circle detection in
linkedlist.
电面2, 分割字符串,定义了一些rule
有三对分割符,我忘了是给什么了,但应该不太重要,就假定给的是(),{},[],然后这
六个符如果是连续两个重复就是escaping,下面是一些例子
abc(cde)efg -> abc, cde, efg
(abc){cde}[efg] -> abc, cde, efg
(((ab))c)cd{{}}e[efg)]]] -> (ab)c, cd{}e, efg)]
没做出来,第二天一大早就被拒了。
3 - wireless generation, NYC
电面,是一个engine... 阅读全帖
l****o
发帖数: 315
40
来自主题: JobHunting版 - G家最新电面
两个函数是
String encode(List list)
List decode(String s)
最后要实现的效果是 list.equals(decode(encode(list))
d*********g
发帖数: 154
41
来自主题: JobHunting版 - G家最新电面

如果加空格呢?
input: "11111111111", "&^*)asdfg"
encode: "11 11111111111 9 &^*)asdfg"
这样decode的时候先读第一个空格前的数字,就知道需要往后读多少个字符作为decode
的第一个string了,然后再读下一个空格之前的数字,and so on。这样会有反例么?
y***5
发帖数: 21
42
结果:面试7家,5 onsite,3 offer。
面经:
Amazon:2轮电面,5轮onsite。2天后offer,最后decline,非常nice的manager(拿到
A offer时还在面其它公司,比较大度地祝我good luck),拒绝的时候感情上比较难受。
电面1,设计parking lot
2, intersection of sorted int array; design data structure for a phone
contact book
onsite 1: find biggest int in array,
find K biggest int in array(tradeoff between many methods),
implement using heap
2: print modification path from "head" to "tail", given isWord()
api and every time can modify 1 word in the strin... 阅读全帖
u*****o
发帖数: 1224
43
来自主题: JobHunting版 - Tower research 面经+ 扭腰一日游
面试公司:tower research capital, 职位: quantitative trader, 地点:NYC曼哈顿
这家公司做high frequency trading的,大概就是抄短线的意思。本人对金融业一无所
知,炒过一点股票还高买低卖,但拿到onsite后,还是想着应该锻炼一下自己,面试虽
然痛苦,但肯定是有好处的,何况还可以看看华尔街和金融精英们,都长得啥样。。用
心良苦的把面试安排在感恩节后,想着好好复习,结果跳deal跳的天昏地暗,题也没做
几道。在西雅图候机的时候心情别提多沉重了,onsite丢脸那可是无处遁形啊。怕了一
路,最后还是没躲过。
转机的时候,去纽约的飞机又因为天气问题被cancel了,在芝加哥机场等了3个多小时
。到了纽约已经晚上8点多了。宾馆屋里那叫一个黑呀,根本不是学习的地方,我把所
有的灯源都集中到书桌前,困的已经睁不开眼了,但还是咬着牙把markov chain,
martingale, 各种integration的trick都过了一遍才睡的。。后来证明这番努力完全没
有用 T_T…
第一轮是做卷子,10道题两个小时,一道题就是12分钟... 阅读全帖
w*****t
发帖数: 485
44
来自主题: JobHunting版 - g电面
1) RateLimit大体思路:
use window rolling, 用一个队列,保存request的请求时间
新来一个请求时,先根据当前时间(如 123.45),减去1秒(122.45), 然后将队列头部所
有小于122.45的request出队,再判断队列长度是否还小于qps,是的话插入新的
request,并返回true,否则返回false。
2) encode/decode:
用一个任意的字符来分割list, 比如用'#',如果原string中有该分隔符,就
double一个,
比如:"abc,de#,hij" -> "abc#de###hij#"
"abc,d#f,hij" -> "abc#d##f#hij#"
decode时,若只有单独一个分隔符,直接分割,若有两个或以上的连续分隔符,去掉一
个保留一个,再继续处理后面的字符串。。。
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)