We have N bulbs arranged on a number line, numbered 1 to N from left to right. Bulb i is at coordinate i. Each bulb has a non-negative integer paramet ...
分类:
其他好文 时间:
2020-06-15 15:42:11
阅读次数:
80
网上摘录常用css片段 垂直水平居中 /*绝对定位 + 未知宽高 + translate*/ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); /*flex 轻松搞定水平垂直居中(未知宽高*/ dis ...
分类:
Web程序 时间:
2020-06-14 23:22:57
阅读次数:
85
题目 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nod ...
分类:
其他好文 时间:
2020-06-14 20:31:35
阅读次数:
61
func merge(left,right []int) (result []int) { r,l := 0,0 for l < len(left) && r < len(right) { if left[l] < right[r]{ result = append(result,left[l]) ...
分类:
编程语言 时间:
2020-06-14 19:03:35
阅读次数:
62
###第一种,常用于垂直居中盒子的文字,需要知道盒子高度,行高不能设置百分比 text-align:center; line-height:盒子本身高度 ###第二种,使用display:table和display:table-cell配合,两个必须分别作用于父盒子和子盒子 display:tabl ...
分类:
Web程序 时间:
2020-06-14 16:53:54
阅读次数:
228
1 class BTree: 2 def __init__(self, value): 3 self.left = None 4 self.data = value # 节点值 5 self.right = None 6 7 def insertLeft(self, value): # 左子树插入节 ...
分类:
其他好文 时间:
2020-06-13 21:13:18
阅读次数:
70
一、基础 1、 定义节点类 # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None 2、给定一张图 二、基础 ...
分类:
编程语言 时间:
2020-06-13 13:04:01
阅读次数:
55
<div> <h1>ssssssssssssssssssssss</h1> </div> <style> div { text-align: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50 ...
分类:
其他好文 时间:
2020-06-13 10:34:07
阅读次数:
62
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = Nonefrom typing import Listclass Solution: # 迭代的想法 def levelOrderBot ...
分类:
其他好文 时间:
2020-06-13 00:42:24
阅读次数:
46
<div class="left_img"> <img class="img-responsive center-block" src="img/index/j.png" alt="" /> </div> .section3 .left_img { width: 100%; height: 324p ...
分类:
其他好文 时间:
2020-06-12 16:15:38
阅读次数:
74