题目描述 输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。 # -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = Non ...
分类:
编程语言 时间:
2019-12-07 12:21:47
阅读次数:
104
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Example: Note: T ...
分类:
其他好文 时间:
2019-12-07 10:41:18
阅读次数:
72
链接: https://vjudge.net/problem/HDU 3709 题意: A balanced number is a non negative integer that can be balanced if a pivot is placed at some digit. More ...
分类:
其他好文 时间:
2019-12-07 01:14:03
阅读次数:
81
链接: https://vjudge.net/problem/HDU 3652 题意: A wqb number, or B number for short, is a non negative integer whose decimal form contains the sub string ...
分类:
其他好文 时间:
2019-12-07 01:12:49
阅读次数:
105
Given a linear equation of n variables, find the total number of non-negative integer solutions of it. All coefficients are positive. Example: input: ...
分类:
其他好文 时间:
2019-12-05 01:19:58
阅读次数:
91
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initia ...
分类:
其他好文 时间:
2019-12-04 22:22:54
阅读次数:
118
Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti ...
分类:
其他好文 时间:
2019-12-04 20:07:35
阅读次数:
93
isinstance()函数: 该函数判断一个对象是否是已知的类型,类似于type() 会认为子类是一种父类类型,考虑了继承关系,而 不会认为子类是一种父类类型,不考虑继承关系。 object是实例对象,classinfo是直接或间接类名,基本类型或者由他们组成的元组。 return JsonRes ...
分类:
其他好文 时间:
2019-12-01 19:13:25
阅读次数:
114
1主题主题名称结构的URL:{persistent|non-persistent}://tenant/namespace/topic名称组成说明persistent/non-persistent持久和非持久tenant租户namespace命名空间主题的管理单元,用作相关主题的分组机制。大多数主题配置是在命名空间级别执行的。每个租户可以有多个命名空间topic名字的最后一部分无需显式创建新主题你不
分类:
其他好文 时间:
2019-11-29 19:54:17
阅读次数:
76
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2019-11-29 14:24:00
阅读次数:
88