题目描述: Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edg ...
分类:
其他好文 时间:
2018-04-07 11:18:11
阅读次数:
127
9. Palindrome Number 题目: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative ...
分类:
其他好文 时间:
2018-04-06 19:36:00
阅读次数:
175
Receive without conceit, release without struggle. 接受时,不狂妄;放手时,不犹豫。 How to understand this quote? Doesn't it mean that when we are given some gifts fr ...
分类:
其他好文 时间:
2018-03-28 10:27:19
阅读次数:
136
函数定义 __import__(name, globals={}, locals={}, fromlist=[], level= 1) module Import a module. Because this function is meant for use by the Python inter ...
分类:
编程语言 时间:
2018-03-27 21:04:25
阅读次数:
210
Concept Learning supervised, eager learning target problem: whether something belongs to the target concept or not Find S Algorithm 这个算法得到的是对于数据集最贴切的描 ...
分类:
其他好文 时间:
2018-03-27 10:21:41
阅读次数:
129
LeetCode第7题“Reverse Integer”的笔记 ...
分类:
其他好文 时间:
2018-03-26 23:32:03
阅读次数:
196
Tasks: Description of triangle problem: Function triangle takes three integers a,b,c which are length of triangle sides; calculates whether the triang ...
分类:
其他好文 时间:
2018-03-26 00:41:32
阅读次数:
173
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
分类:
其他好文 时间:
2018-03-25 22:17:50
阅读次数:
202
1 题目 Determine whether an integer is a palindrome. Do this without extra space. 判断一个数字是否是回文数字,不用额外的空间。 2 分析 如果允许使用额外的空间,那么就将数字头尾颠倒,然后判断相等。但是缺陷在于,不能用在6 ...
分类:
其他好文 时间:
2018-03-24 11:34:32
阅读次数:
138
Problem Description Fibonacci numbers are well-known as follow: Now given an integer N, please find out whether N can be represented as the sum of sev ...
分类:
其他好文 时间:
2018-03-22 23:49:44
阅读次数:
291