贪心策略:就是s1+s2>s2+s1这个贪心策略非常容易发现。 ...
分类:
其他好文 时间:
2019-05-23 00:19:20
阅读次数:
94
N阶二叉树: class Tree { public int val; public List children; public Tree() { } public Tree(int _val, List _children) { val = _val; child... ...
分类:
其他好文 时间:
2019-05-22 20:38:55
阅读次数:
99
Vue.use(Router) const routes = [ { path: '/login', name: 'login', component: Login }, { path: '/index', name: 'index', component: Index, children: [ { ...
分类:
其他好文 时间:
2019-05-22 19:28:44
阅读次数:
118
jQuery-筛选 1.过滤 在jQuery对象中元素对象数组中过滤出一部分元素 1).first() 2).last() 3.eq(index|-index) 4.filter(selector) 5.not(selector) 6.has(selector) 2.查找 1).children() ...
分类:
Web程序 时间:
2019-05-19 12:13:19
阅读次数:
188
获得子节点方式: 1.将文本内容也当成节点 childNodes firstChild lastChild 2.获得标签为内容的节点 children firstElementChild lastElementChild ...
分类:
编程语言 时间:
2019-05-18 15:56:58
阅读次数:
100
题目 There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following ...
分类:
其他好文 时间:
2019-05-18 11:13:44
阅读次数:
95
下拉刷新请使用:RefreshIndicator,挺简单,把内容放到child:属性,onRefresh:()async{await}这个无名函数是刷新的具体操作,是一个Future类型的函数。一个具体的示例:import 'package:flutter/material.dart';void m ...
分类:
其他好文 时间:
2019-05-14 11:30:08
阅读次数:
144
引自:https://blog.csdn.net/weixin_37806077/article/details/79665256 $().children(selector) 返回被选元素的所有直接子元素(后代中只要儿子不要孙子(不会递归)) $().find(selector) 获得当前元素集合 ...
分类:
Web程序 时间:
2019-05-12 15:47:17
阅读次数:
158
Vue之路由 在 vue 中使用 vue-router 使用tag属性指定router-link渲染的标签类型 设置路由重定向 设置路由高亮 设置路由切换动效 在路由规则中定义参数 使用 children 属性实现路由嵌套 命名视图实现经典布局 watch属性的使用 考虑一个问题:想要实现 名 和 ...
分类:
其他好文 时间:
2019-05-09 10:38:06
阅读次数:
133
题目: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. Note: A leaf is a node with no children. Ex ...
分类:
编程语言 时间:
2019-05-08 00:27:45
阅读次数:
167