DZY loves chessboard, and he enjoys playing with it. He has a chessboard of n rows and m columns. Some cells of the chessboard are bad, others are goo ...
分类:
其他好文 时间:
2020-02-14 18:35:30
阅读次数:
49
转自:https://blog.csdn.net/qq_42711381/article/details/90451301 由于刚好也遇到这个问题,记录下来 使用的DataFrame的 当使用 frame2['year']['two'] = 10000, 即df名[列名][行名]的方式去赋值就会报错... ...
分类:
其他好文 时间:
2020-02-14 12:31:36
阅读次数:
75
1 """ 2 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. 3 According to the definition of LCA on Wikipedia: ...
分类:
其他好文 时间:
2020-02-13 22:33:56
阅读次数:
67
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: ...
分类:
其他好文 时间:
2020-02-13 20:46:21
阅读次数:
72
You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th ...
分类:
其他好文 时间:
2020-02-13 13:22:48
阅读次数:
67
原题链接在这里:https://leetcode.com/problems/building-h2o/ 题目: There are two kinds of threads, oxygen and hydrogen. Your goal is to group these threads to fo ...
分类:
其他好文 时间:
2020-02-13 10:02:55
阅读次数:
76
爬楼梯。题意是给一个数字n代表楼梯的高度,你可以每次爬一步或者两步,求有多少种不同的爬法。例子, Example 1: Input: 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step ...
分类:
其他好文 时间:
2020-02-13 09:56:32
阅读次数:
70
Given an array of integers arr and two integers k and threshold. Return the number of sub-arrays of size k and average greater than or equal to thresh ...
分类:
其他好文 时间:
2020-02-13 09:42:29
阅读次数:
54
Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Input: ho ...
分类:
其他好文 时间:
2020-02-13 09:30:42
阅读次数:
57
Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes of the k weakest rows in the matrix or ...
分类:
其他好文 时间:
2020-02-13 00:00:55
阅读次数:
85