Iris-mao


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

leetcode - 7. Reverse Integer

发表于 2018-04-08 | 分类于 leetcode

Degree

Easy ★ (*´╰╯`๓)♬

Description:

Given a 32-bit signed integer, reverse digits of an integer.

Note:

Assume we are dealing with an environment which could only hold integers within the 32-bit signed integer range. For the purpose of this problem, assume that your function returns 0 when the reversed integer overflows.

阅读全文 »

leetcode - 2. Add Two Numbers

发表于 2018-04-04 | 分类于 leetcode

Degree

Medium ★★★ ε=(´ο`*)))

Description

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.

阅读全文 »

leetcode - 4. Median of Two Sorted Arrays

发表于 2018-04-02 | 分类于 leetcode

Degree

Easy ★ (*´╰╯`๓)♬

Description:

There are two sorted arrays nums1 and nums2 of size m and n respectively.
Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).

阅读全文 »

leetcode - 1. Two Sum

发表于 2018-04-02 | 分类于 leetcode

Degree

Easy ★ (*´╰╯`๓)♬

Description:

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 element twice.

阅读全文 »

Hello World

发表于 2018-03-27

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

阅读全文 »

Iris-mao

Iris-mao's personal blog

5 日志
1 分类
4 标签
GitHub Google
© 2018 Iris-mao