由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Algorithm for Reversal
相关主题
【为什么我写的reverse string总出错】reverse words in a string
请问如何安全地reverse 一个integerImage Algorithm Development: Senior/Staff Engineer
BB的面试题-只用&和| 如何reverse a bit string?西雅图 Staff Algorithm Engineer-Personalized Search/Recommendation Algorithm&Supply Chain Optimization
L 电面2一个data structure design的问题,求助
请教一道Leetcode 题, 多谢Software Engineers for GE Healthcare, Waukesha WI
请教leetcode一道题Help, Algorithms questions
Reverse Words in a String问个简单的数学编程题吧(google interview)
Reverse characters of each word in a sentenceME投金融方向的 职位靠谱不?
相关话题的讨论汇总
话题: optimize话题: algorithm话题: reversal话题: reverse话题: alice
进入JobHunting版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
1. Reverse a string, for example, change "abcde" to "edcba".
Optimize space, optimize time.
2. Reverse words, for example, change "I love Alice very much"
to "much very Alice love I". Optimize space, optimize time.
v********w
发帖数: 136
2
1.for i=1:n/2 swap a[i] and a[n-i]
2. reverse the whose string as 1, then reverse each word

【在 c**********e 的大作中提到】
: 1. Reverse a string, for example, change "abcde" to "edcba".
: Optimize space, optimize time.
: 2. Reverse words, for example, change "I love Alice very much"
: to "much very Alice love I". Optimize space, optimize time.

1 (共1页)
进入JobHunting版参与讨论
相关主题
ME投金融方向的 职位靠谱不?请教一道Leetcode 题, 多谢
CS同学转行机会-Junior Technical position (Trading Analyst)请教leetcode一道题
贴一个intern机会,谢谢。Reverse Words in a String
急问amazon面试邀请是不是有模板的啊?Reverse characters of each word in a sentence
【为什么我写的reverse string总出错】reverse words in a string
请问如何安全地reverse 一个integerImage Algorithm Development: Senior/Staff Engineer
BB的面试题-只用&和| 如何reverse a bit string?西雅图 Staff Algorithm Engineer-Personalized Search/Recommendation Algorithm&Supply Chain Optimization
L 电面2一个data structure design的问题,求助
相关话题的讨论汇总
话题: optimize话题: algorithm话题: reversal话题: reverse话题: alice