大家都知道交换机的端口都是比较多,当你想查看某些端口状态(是处于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
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
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
重启网卡出现提示:Bringing up interface eth0: Determining if ip address 10.109.67.81 is already in use for device eth0... [ OK ]Bri...
分类:
其他好文 时间:
2015-01-10 22:12:22
阅读次数:
288
svn is already locked 解决方案:如题所述经常在更新代码的时候会产生这样的问题!并且在对应的目录上操作Clean Up 没有任何的效果!如下解决方法。在出错文件夹下,鼠标右键TortoiseSVN->Clean up.SVN错误:Attempted to lock an alre...
分类:
其他好文 时间:
2015-01-09 23:45:39
阅读次数:
178