qingqingni1990
码龄14年
关注
提问 私信
  • 博客:52,238
    52,238
    总访问量
  • 26
    原创
  • 590,485
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2011-07-12
博客简介:

qingqingni1990的博客

查看详细资料
个人成就
  • 获得4次点赞
  • 内容获得0次评论
  • 获得13次收藏
创作历程
  • 77篇
    2016年
  • 1篇
    2015年
成就勋章
TA的专栏
  • leetcode
    51篇
  • 算法
    3篇
  • SHELL
    11篇
  • 操作系统
  • awk
    1篇
  • sed
  • C
    1篇
  • JAVA
    3篇
  • Linux
    4篇
  • 设计模式
    1篇
  • struts2
    1篇
创作活动更多

2024 博客之星年度评选报名已开启

博主的专属年度盛宴,一年仅有一次!MAC mini、大疆无人机、华为手表等精美奖品等你来拿!

去参加
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Linux下 环境变量/etc/profile、/etc/bashrc、~/.bashrc的区别

最近配置了JAVA和Scala的环境变量,发现自己对Linux下 /etc/profile、/etc/bashrc、~/.bashrc的区别不是特别清楚,特此查阅了相关资料,整理下来,供以后查阅。如有错误之处,还望各位朋友批评指正。①/etc/profile: 该文件登录操作系统时,为每个用户设置环境信息,当用户第一次登录时,该文件被执行。也就是说这个文件对每个shell都有效,用于获
转载
发布博客 2016.12.14 ·
348 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

测试用例实例

测试用例编号N3310_IT_FILEITF_READFILE_004测试项目测试模块A提供的文件接口测试标题文件B正在被其他进程执行读/写操作,通过A模块的文件接口读取文件B中的数据重要级别高预置条件进程XProcess被创建并启动输入
转载
发布博客 2016.12.12 ·
2674 阅读 ·
1 点赞 ·
0 评论 ·
4 收藏

44. Wildcard Matching

题目:Wildcard MatchingImplement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).T
转载
发布博客 2016.12.01 ·
297 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

43. Multiply Strings

题目:Multiply Strings Given two numbers represented as strings, return multiplication of the numbers as a string.Note:The numbers can be arbitrarily large and are non-negative.Converting t
转载
发布博客 2016.12.01 ·
232 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

42. Trapping Rain Water

题目:Trapping Rain WaterGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given [
原创
发布博客 2016.11.29 ·
372 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

41. First Missing Positive

题目:First Missing Positive Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm should run in O
原创
发布博客 2016.11.28 ·
226 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

40. Combination Sum II

题目:Combination Sum II Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inC where the candidate numbers sums to T.Each number in C may only be use
转载
发布博客 2016.11.27 ·
231 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

39. Combination Sum

题目:Combination Sum Given a set of candidate numbers (C) and a target number (T), find all unique combinations inC where the candidate numbers sums to T.The same repeated number may be chosen fro
转载
发布博客 2016.11.26 ·
210 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

38. Count and Say

题目:Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is
原创
发布博客 2016.11.25 ·
267 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

37. Sudoku Solver

题目:Sudoku SolverWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be only one unique solution.
转载
发布博客 2016.11.24 ·
278 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

awk里面执行shell/系统命令

先把文件列表存在filename文件中(1)awk '{system("rm $0")}' filename -------WRONG因为对于 system来说 $0 不再是某行全部的内容,而是 “sh” , 上面的命令相当于执行“ sh rm sh”具体例子:如有t,tt,ttt几个zone,需要删除。#zoneadm li
转载
发布博客 2016.11.23 ·
1279 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

关于struts2 的this.addFieldError

在后台RegistAction添加数组之后,如下图:具体例子: this.addFieldError("success", "注册成功"); return SUCCESS;那么在前台怎么显示呢,需要用下面这种方式:   显示全部的 错误消息(用addFieldError方法添加的 ) field1 显示指定的 field1字段的 错误消息
转载
发布博客 2016.11.23 ·
569 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

36. Valid Sudoku

题目:Valid SudokuDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character'.'.A p
原创
发布博客 2016.11.23 ·
311 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

35. Search Insert Position

题目:Search Insert PositionGiven 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 inserted in order.You may assume no
原创
发布博客 2016.11.22 ·
184 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

34. Search for a Range

题目:Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If
原创
发布博客 2016.11.22 ·
221 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

33. Search in Rotated Sorted Array

题目:Search in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target value to search
转载
发布博客 2016.11.22 ·
181 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

32. Longest Valid Parentheses

题目:Longest Valid ParenthesesGiven a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the longest valid parenth
转载
发布博客 2016.11.21 ·
217 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

31. Next Permutation

题目:Next PermutationImplement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it a
原创
发布博客 2016.11.18 ·
248 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

memset给整型数组赋初值

现有一个整型数组a[5],若要是用memset函数给每个元素赋初值1怎么做呢?是memset(a,1,5*sizeof(int))吗? 其实这样是不对的,memset是以字节为单位就是对array指向的内存的4个字节进行赋值,每个都用ASCII为1的字符去填充,转为二进制后,1就是00000001,占一个字节。一个INT元素是4字节,合一起就是00000001000000010
转载
发布博客 2016.11.18 ·
1047 阅读 ·
1 点赞 ·
0 评论 ·
3 收藏

30. Substring with Concatenation of All Words (又超时了,最后一个case没过)

You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) ins that is a concatenation of each word in words exactly once and w
转载
发布博客 2016.11.18 ·
354 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多