【114-Flatten Binary Tree to Linked List(二叉树转单链表)】 【LeetCode-面试算法经典-Java实现】【全部题目文件夹索引】 原题 Given a binary tree, flatten it to a linked list in-place. Fo ...
分类:
编程语言 时间:
2017-07-28 20:58:05
阅读次数:
215
Vuex 是一个专为 Vue.js 应用程序开发的状态管理模式 什么是状态管理模式: 听着云里雾里,在实际的单页面应用开发中,我们经常会遇到组件之间通信的问题,在我看来vuex完美的解决了这个问题(个人理解) 首先我们来看看它的结构 这块呢我们也采用了模块化的写法: 首先store.js 它的主要作 ...
分类:
其他好文 时间:
2017-07-28 18:29:51
阅读次数:
187
SQL> select count(*) from v$session #当前的连接数SQL> Select count(*) from v$session where status='ACTIVE' #并发连接数SQL> select value from v$parameter where na ...
分类:
数据库 时间:
2017-07-28 14:42:23
阅读次数:
192
依然是github开源项目:WaitingDots 这个项目代码不多,实现的非常easy。可是非常有意思由于动画的基本元素不是画出来的,而是使用了spannableString来实现。 DotsTextView.java JumpingSpan.java MainActivity.java Dots ...
分类:
其他好文 时间:
2017-07-28 13:25:19
阅读次数:
187
一. 题目描写叙述 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inse ...
分类:
其他好文 时间:
2017-07-28 12:47:36
阅读次数:
136
https://stackoverflow.com/questions/10577256/numbering-lines-matching-the-pattern-using-sed 最简单的命令是 sed - '/abc/=' tab.txt 812 这种只是输出行号。 root@ubuntu:/ ...
分类:
其他好文 时间:
2017-07-28 01:00:49
阅读次数:
427
SQL 结构化查询语句: $ sqlplus / as sysdba 在oracle用户下以管理员身份进入sql SQL> alter user hr account unlock identified by hr; 解锁hr用户 SQL> show user 显示当前管理员身份 SQL> desc ...
分类:
数据库 时间:
2017-07-27 21:26:25
阅读次数:
154
1.如果git status告诉你有文件被修改过,用git diff可以查看修改内容。 2.查看历史记录,在Git中,我们用git log命令查看,git log命令显示从最近到最远的提交日志, 如果嫌输出信息太多,看得眼花缭乱的,可以试试加上--pretty=oneline参数,git log - ...
分类:
其他好文 时间:
2017-07-27 20:23:33
阅读次数:
137
1、TP3.2手册日志类链接:http://document.thinkphp.cn/manual_3_2.html#log 2、日志默认路径:/Application/Runtime/Logs 3、TP3.2默认只能查看:只记录EMERG ALERT CRIT ERR 级别的错误,那我现在想要和a ...
分类:
其他好文 时间:
2017-07-27 18:39:15
阅读次数:
324
题目地址:POJ 2409 题意:给一个包括s个珠子的项链,用c种颜色对其染色,问存在多少个不同的项链。 思路:和上一篇POJ 1286几乎相同。 #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> ...
分类:
其他好文 时间:
2017-07-27 18:28:38
阅读次数:
165