随笔分类 -  数据结构与算法

摘要:【Question】 Reverse digits of an integer. Example: x = 123, return 321 x = 123, return 321 【My Solution】 python class Solution(object): def reverse(sel 阅读全文
posted @ 2016-12-23 00:30 涉风 阅读(159) 评论(0) 推荐(0)
摘要:【Question】 Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 【My Solution】 Sl 阅读全文
posted @ 2016-12-22 19:32 涉风 阅读(133) 评论(0) 推荐(0)
摘要:【Question】 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo 阅读全文
posted @ 2016-12-22 00:03 涉风 阅读(213) 评论(0) 推荐(0)