大家都知道交换机的端口都是比较多,当你想查看某些端口状态(是处于UP还是DOWN状态)时,通常我们会使用以下命令:思科:showinterfaceXH3C:displayinterfaceX注:X表代端口号,如e1/0/1之类的。但如果当交换机的端口非常多时,而且你想知道所有端口的状态时,你再一条一条命..
分类:
其他好文 时间:
2015-01-12 19:33:03
阅读次数:
176
题目:
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree a...
分类:
编程语言 时间:
2015-01-12 16:40:36
阅读次数:
221
设计遵循Android Design,好处,如顶部导航栏,Android有自己的导航-ActionBar,有自己的样式,方便扩展,在此基础上能实现各种各样的样式,不要一味的去模仿别人的效果。Google在4.0之后便有了自己的一套Android设计准则推出,到今天可能已经很成熟了,而Android的...
分类:
移动开发 时间:
2015-01-12 14:34:51
阅读次数:
155
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
先转置class Solution
{
public:
void rotate(vector...
分类:
其他好文 时间:
2015-01-12 10:57:18
阅读次数:
137
简介Parsing方法分类: Universal: Cocke-Younger-Kasami Algorithm and Earley's Algorithm. Top-down: LL(k). Bottom-up: LR(k).错误恢复模式: Panic-Mode Recovery: P...
分类:
其他好文 时间:
2015-01-12 10:42:39
阅读次数:
180
# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific tar...
分类:
编程语言 时间:
2015-01-12 00:23:44
阅读次数:
391
这个自定义字体其实和ActionBar有关,但之前写AtionBar的时候没考虑到修改字体样式,今天看到一篇专门写这个的文章就贴上使用方式。╮(╯▽╰)╭,不得不说Actionbar的那个样式真是让人头疼,明明是可以用图形界面来指定的嘛。在res/values/styles.xml文件中加入下列代码...
分类:
移动开发 时间:
2015-01-11 20:18:40
阅读次数:
213
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?我直接开了一个大小相同的数组resul...
分类:
其他好文 时间:
2015-01-11 14:50:19
阅读次数:
154
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?题意判...
分类:
其他好文 时间:
2015-01-11 14:44:45
阅读次数:
160
//首先用枚举 列出方向 上,下,左,右(枚举的最后一位数后不用符号 否则会报错) public enum dro { up = 1, down = 2, left = 3, right = 4 } //坐标 定义 二维坐标 地图 (横坐标x,纵坐标y) public struct zuobia.....
分类:
移动开发 时间:
2015-01-10 23:37:39
阅读次数:
245