码迷,mamicode.com
首页 >  
搜索关键字:whether    ( 1481个结果
747_Largest-Number-At-Least-Twice-of-Others
747_Largest Number At Least Twice of Others [TOC] Description In a given integer array , there is always exactly one largest element. Find whether the ...
分类:其他好文   时间:2018-06-17 12:37:13    阅读次数:183
261. Graph Valid Tree
问题描述: 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 edges ...
分类:其他好文   时间:2018-06-16 14:26:00    阅读次数:170
97. Interleaving String
问题描述: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. Example 1: Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac" Ou ...
分类:其他好文   时间:2018-06-11 13:52:07    阅读次数:148
520. Detect Capital
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...
分类:Windows程序   时间:2018-06-08 21:59:27    阅读次数:181
Chapter 2: Bounding Volume Hierarchies 层次包围盒
关键是找一个完全包裹所有对象的盒子: if (ray hits bounding object) return whether ray hits bounded objectselse return false 例如,我们把对象集分为两组,红和蓝,然后用矩形包围他们: if (hits purple ...
分类:其他好文   时间:2018-06-08 01:00:09    阅读次数:993
678. Valid Parenthesis String
678. Valid Parenthesis String Given a string containing only three types of characters: '(', ')' and '*', write a function to check whether this strin ...
分类:其他好文   时间:2018-06-02 18:29:07    阅读次数:115
4.内置函数总结
1 def abs(*args, **kwargs): # real signature unknown 2 """ Return the absolute value of the argument. """ 3 pass 4 #abs(*args, **kwargs)#返回参数的绝对值,可接收任... ...
分类:其他好文   时间:2018-06-01 19:10:29    阅读次数:186
leetcode-219-Contains Duplicate II(使用set来判断长度为k+1的闭区间中有没有重复元素)
题目描述: 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] an ...
分类:其他好文   时间:2018-05-31 02:43:47    阅读次数:187
leetcode 263. Ugly Number
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example ...
分类:其他好文   时间:2018-05-28 00:53:30    阅读次数:139
836. Rectangle Overlap
A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates ...
分类:其他好文   时间:2018-05-25 22:54:14    阅读次数:175
1481条   上一页 1 ... 26 27 28 29 30 ... 149 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!