由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 这道Amazon面试题什么意思?
相关主题
A few glassdoor questionsAmazon电话面试
G家面经amazon电面
如何实现线程安全的哈希表问一下LA和湾区工作比较
leetcoede新题Valid PalindromeArista Networks面经
求Debug,大大们当练手吧Google电面面经 + onsite求祝福
问一道 C/C++ 题universial hashing 一问
google phone interview questionarray contains two integer that sum up to 7
贡献些电话面试题目flextrade电面面经+求教
相关话题的讨论汇总
话题: toupper话题: tolower话题: amazon话题: character话题: hashmap
进入JobHunting版参与讨论
1 (共1页)
S*******C
发帖数: 822
1
给我toUpper函数,让实现toLower函数。基本上就是事先通过toupper得到所有小转大
的pair,然后存哈希。
S*******C
发帖数: 822
2
有谁做过这道题?
b******n
发帖数: 851
3
我估计就是
1) 用toUpper(string s), so that u get a hashMap
whose key is the Uppercase letter, and the value is the lower case letter (
kinda like an inverted index...)
2) and use the hashmap to implement toLower

【在 S*******C 的大作中提到】
: 给我toUpper函数,让实现toLower函数。基本上就是事先通过toupper得到所有小转大
: 的pair,然后存哈希。

d******e
发帖数: 2265
4
return x - upper a + a
简单数学性质

【在 S*******C 的大作中提到】
: 给我toUpper函数,让实现toLower函数。基本上就是事先通过toupper得到所有小转大
: 的pair,然后存哈希。

l*********u
发帖数: 19053
5
本懒蛋记ascii table方法 :)
A=65,a=97
so, toLower(x)=toUpper(x)+(97-65) ? :)

【在 S*******C 的大作中提到】
: 给我toUpper函数,让实现toLower函数。基本上就是事先通过toupper得到所有小转大
: 的pair,然后存哈希。

1 (共1页)
进入JobHunting版参与讨论
相关主题
flextrade电面面经+求教求Debug,大大们当练手吧
两个数组找duplicated有什么好办法问一道 C/C++ 题
大家好,请教一道CLRS上的题目google phone interview question
Google实习第一轮电话面试总结贡献些电话面试题目
A few glassdoor questionsAmazon电话面试
G家面经amazon电面
如何实现线程安全的哈希表问一下LA和湾区工作比较
leetcoede新题Valid PalindromeArista Networks面经
相关话题的讨论汇总
话题: toupper话题: tolower话题: amazon话题: character话题: hashmap