随笔分类 - 数据结构与算法
摘要:【Question】 Reverse digits of an integer. Example: x = 123, return 321 x = 123, return 321 【My Solution】 python class Solution(object): def reverse(sel
阅读全文
摘要:【Question】 Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 【My Solution】 Sl
阅读全文
摘要:【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
阅读全文

浙公网安备 33010602011771号