摘要:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid bu... 阅读全文
摘要:
Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After remo... 阅读全文
摘要:
Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences... 阅读全文
摘要:
今天遇到了一个问题,我们写了一个服务脚本A,该服务需要优先于mysql启动。脚本是从其他地方拷来的模板,前面的默认配置没改,只是实现了自己的功能。写完,chkconfig A on,reboot,启动后就傻眼了,mysql未能正常启动。最后分析原因,原来是服务A在mysql之后才启动,未能给mysq... 阅读全文