上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 76 下一页
摘要: Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloon 阅读全文
posted @ 2020-05-10 10:00 Schwifty 阅读(175) 评论(0) 推荐(0)
摘要: Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio 阅读全文
posted @ 2020-05-10 03:28 Schwifty 阅读(129) 评论(0) 推荐(0)
摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. The update(i, val) function modifies nums by upd 阅读全文
posted @ 2020-05-09 09:46 Schwifty 阅读(142) 评论(0) 推荐(0)
摘要: You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight 阅读全文
posted @ 2020-05-09 08:43 Schwifty 阅读(250) 评论(0) 推荐(0)
摘要: In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. Two nodes of a binary tree are cousins if they have 阅读全文
posted @ 2020-05-08 11:32 Schwifty 阅读(148) 评论(0) 推荐(0)
摘要: You are given the array paths, where paths[i] = [cityAi, cityBi] means there exists a direct path going from cityAi to cityBi. Return the destination 阅读全文
posted @ 2020-05-07 06:18 Schwifty 阅读(331) 评论(0) 推荐(0)
摘要: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Example 1: Input: 5 阅读全文
posted @ 2020-05-06 10:57 Schwifty 阅读(160) 评论(0) 推荐(0)
摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans 阅读全文
posted @ 2020-05-06 10:37 Schwifty 阅读(122) 评论(0) 推荐(0)
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of ston 阅读全文
posted @ 2020-05-06 10:16 Schwifty 阅读(138) 评论(0) 推荐(0)
摘要: Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You have to find a permutation of t 阅读全文
posted @ 2020-04-23 10:57 Schwifty 阅读(217) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 76 下一页