Leetcode —— Reverse Integer

Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 – 1], then return 0.

Leetcode —— two_sum

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

You can return the answer in any order.


在上个月凭借着Kindle Unlimited会员限免时候,读完了这本书一往无前(小米官方授权传记;首次完整揭秘小米独特商业模式,揭露诸多雷军创业过程及小米成长历程从未对外公开的故事),简单分享一下自己的读后感。