7 Reverse Integer Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an env ...
分类:
其他好文 时间:
2019-06-12 09:19:11
阅读次数:
90
六月箴言 万物之中,希望最美;最美之物,永不凋零。—— 斯蒂芬·金 第二周算法记录 007 -- Reverse Integer (整数反转) 题干英文版: Given a 32-bit signed integer, reverse digits of an integer. Example 1: ...
分类:
其他好文 时间:
2019-06-09 13:24:56
阅读次数:
110
Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 题意 给定一个没加点的IP地址,返回所有可能的合法IP地址。 思路: ...
分类:
其他好文 时间:
2019-06-01 09:49:58
阅读次数:
93
[LeetCode] Add Two Numbers 两个数字相加 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse or ...
分类:
编程语言 时间:
2019-05-30 01:33:41
阅读次数:
103
Given a time represented in the format "HH:MM", form the next closest time by reusing the current digits. There is no limit on how many times a digit ...
分类:
其他好文 时间:
2019-05-28 09:40:35
阅读次数:
101
Source: PAT A1132 Cut Integer (20 分) Description: Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long int ...
分类:
其他好文 时间:
2019-05-24 22:26:05
阅读次数:
138
1、列表是什么 列表是由一系列按特定顺序排列的元素组成。 鉴于列表通常包含多个元素,给列表制定一个表示复数的名称(如letters,digits或names)是个不错的主意。 在Python中,用方括号([ ])来表示列表,并用逗号来分割其中元素。 1.访问列表元素 列表是有序集合,因此要访问列表的 ...
分类:
其他好文 时间:
2019-05-24 18:43:53
阅读次数:
118
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 contai ...
分类:
其他好文 时间:
2019-05-23 00:02:42
阅读次数:
117
链接:https://codeforces.com/contest/1167/problem/A 题意: A telephone number is a sequence of exactly 11 digits, where the first digit is 8. For example, t ...
分类:
其他好文 时间:
2019-05-21 15:54:36
阅读次数:
176
Starting with a positive integer N, we reorder the digits in any order (including the original order) such that the leading digit is not zero. Return ...
分类:
其他好文 时间:
2019-05-20 23:00:12
阅读次数:
186