/** * @param {number[]} nums * @return {number[]} */ var productExceptSelf = function(nums) { let left = [] left[0] = 1; let right = [] right[nums.len ...
分类:
编程语言 时间:
2020-06-15 23:13:07
阅读次数:
63
前情提要 CsI 闪烁体晶体+PD+前放输出信号满足: $U(t) = \frac{N_f\tau_p}{\tau_p-\tau_f} \left[ e^{-\frac{t}{\tau_p}}-e^{-\frac{t}{\tau_f}} \right] + \frac{N_s\tau_p}{\tau ...
分类:
编程语言 时间:
2020-06-15 22:43:47
阅读次数:
63
legend: { selectedMode: true, top: 0, right: 0, orient: 'vertical', // itemWidth: 24, // itemHeight: 2, textStyle: { fontFamily: 'ABBvoiceCNSG-Regular ...
分类:
其他好文 时间:
2020-06-15 15:46:14
阅读次数:
515
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
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
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
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
功能分析 效果图 接口定义 代码orders/Order.vue <template> <div> <el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb-item :to="{ path: '/home' }">首页 ...
class BSTMapNode(object): def __init__(self, key, value): self.key = key self.value = value self.left = None self.right = None # 以列表作为底层存储 class BSTMa ...
分类:
编程语言 时间:
2020-06-12 12:58:33
阅读次数:
69