LeetCode #1 – Two Sum [哈希表]


点击打开链接 Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. P...

LeetCode #1 – Two Sum [哈希表]

点击打开链接 Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indi...
阅读全文 0

CodeForces 514A – Chewbaсca and Number


闲的蛋疼,前两个月学了java,今天又学了Python,所以找了个水题,熟悉一下四种语言。 其实语言不是问题,思路有了,换个语言,如果基本语法会的话,根本不成问题。 确实,Python就是够简洁。因为java和Python只知道点皮毛,可能写的还不够好。 Description Luke S...
闲的蛋疼,前两个月学了java,今天又学了Python,所以找了个水题,熟悉一下四种语言。 其实语言不是问题,思路有了,换个语言,如果基本语法会的话,根本不成问题。 确实,Python就是够简洁...

CodeForces 514A – Chewbaсca and Number

闲的蛋疼,前两个月学了java,今天又学了Python,所以找了个水题,熟悉一下四种语言。 其实语言不是问题,思路有了,换个语言,如果基本语法会的话,根本不成...
阅读全文 1