01 2020 档案

摘要:Given an array nums of n integers, are there elements a, b, c in numssuch that a + b + c = 0? Find all unique triplets in the array which gives the su 阅读全文
posted @ 2020-01-15 15:28 琴影 阅读(235) 评论(0) 推荐(0) 编辑
摘要:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Example 1: Input: 1->2 阅读全文
posted @ 2020-01-14 10:41 琴影 阅读(218) 评论(0) 推荐(0) 编辑
摘要:Given 3 positives numbers a, b and c. Return the minimum flips required in some bits of a and b to make ( a OR b == c ). (bitwise OR operation).Flip o 阅读全文
posted @ 2020-01-13 15:47 琴影 阅读(371) 评论(0) 推荐(0) 编辑
摘要:Given an integer n. No-Zero integer is a positive integer which doesn't contain any 0 in its decimal representation. Return a list of two integers [A, 阅读全文
posted @ 2020-01-13 11:03 琴影 阅读(377) 评论(0) 推荐(0) 编辑
摘要:You have a set of tiles, where each tile has one letter tiles[i]printed on it. Return the number of possible non-empty sequences of letters you can ma 阅读全文
posted @ 2020-01-13 10:23 琴影 阅读(267) 评论(0) 推荐(0) 编辑
摘要:Design an Iterator class, which has: A constructor that takes a string characters of sorted distinctlowercase English letters and a number combination 阅读全文
posted @ 2020-01-09 10:19 琴影 阅读(462) 评论(0) 推荐(0) 编辑
摘要:Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the 阅读全文
posted @ 2020-01-08 20:50 琴影 阅读(161) 评论(0) 推荐(0) 编辑
摘要:Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 题目大意:给定一个数组,返回小标[i, j]的元素之和。 用途:在 阅读全文
posted @ 2020-01-07 10:27 琴影 阅读(262) 评论(0) 推荐(0) 编辑
摘要:Given the array arr of positive integers and the array queries where queries[i] = [Li, Ri], for each query i compute the XOR of elements from Li to Ri 阅读全文
posted @ 2020-01-06 20:55 琴影 阅读(468) 评论(0) 推荐(0) 编辑
摘要:Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase characters as follows: Characters ('a' to 'i') are repre 阅读全文
posted @ 2020-01-06 19:53 琴影 阅读(562) 评论(0) 推荐(0) 编辑
摘要:Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. Example 阅读全文
posted @ 2020-01-03 20:22 琴影 阅读(162) 评论(0) 推荐(0) 编辑
摘要:引言 很多情况下,我们可以将数据结果保存到txt文件中便于后续查看或者再处理,然而为了进行汇报、论文撰写等工作,我们将数据放入表格,为后续整理会提供极大的便利。我们可以利用pandas库进行numpy.ndarray数据保存到excel。 函数说明 pandas.DataFrame.to_excel 阅读全文
posted @ 2020-01-03 10:29 琴影 阅读(7361) 评论(0) 推荐(0) 编辑