由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问个 paypal 的题目 (转载)
相关主题
ZigZag 又读不懂题了,求助!Amazon的一些电面问题
leetcode上zigzag converstion那题怎么才能通过large?狗狗面经~
How to convert string to string array (or vector) (转载)请教:string pattern match 题
zigzag 这个题考什么算法或数据结构。java没有指针真麻烦
LC的难度级别怎么定的?判断一个string是否是某个pattern的周期循环
新鲜onsite面经String Pattern Matching problems
request solutions to 2 questions on leetcoderegex 用DP做对不对啊?
zigzag conversion这个鬼题目真的有公司会考吗?我也发一道A家的电面题,不难,但是跪了。。。。
相关话题的讨论汇总
话题: string话题: rows话题: convert
进入JobHunting版参与讨论
1 (共1页)
i**********e
发帖数: 1145
1
【 以下文字转载自 Topcoders 俱乐部 】
发信人: ihasleetcode (1337coder), 信区: Topcoders
标 题: 问个 paypal 的题目
发信站: BBS 未名空间站 (Tue Dec 6 23:37:10 2011, 美东)
这道题,想请问有没有更好的解?我的思路和解答在这里:
http://www.leetcode.com/groups/general-help/forum/topic/pay-pal
我记得本版好像有讨论过,有没有链接?谢谢
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number
of rows like this: (you may want to display this pattern in a fixed font
for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: PAHNAPLSIIGYIR
Write the code that will take a string and make this conversion given a
number of rows:
string convert(string text, int nRows);
convert("PAYPALISHIRING", 3) should return "PAHNAPLSIIGYIR".
1 (共1页)
进入JobHunting版参与讨论
相关主题
我也发一道A家的电面题,不难,但是跪了。。。。LC的难度级别怎么定的?
String pattern interview Questions新鲜onsite面经
求教电面遇到的一道pattern match的实现request solutions to 2 questions on leetcode
问道题string pattern match的题目zigzag conversion这个鬼题目真的有公司会考吗?
ZigZag 又读不懂题了,求助!Amazon的一些电面问题
leetcode上zigzag converstion那题怎么才能通过large?狗狗面经~
How to convert string to string array (or vector) (转载)请教:string pattern match 题
zigzag 这个题考什么算法或数据结构。java没有指针真麻烦
相关话题的讨论汇总
话题: string话题: rows话题: convert