oj算法习题学习整理
文章平均质量分 58
刷leetcode上的习题学习整理
aizaiee
呵呵呵呵呵呵呵
展开
-
算法习题篇之Twosum
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 would have exactly one solution, and you may not use the same ...原创 2018-10-10 09:05:52 · 267 阅读 · 0 评论 -
算法习题篇之Palindrome
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false Explana...原创 2018-10-10 10:45:05 · 435 阅读 · 0 评论 -
算法习题篇之ReverseInteger
Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are dealing wit...原创 2018-10-11 09:23:43 · 183 阅读 · 0 评论