摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文
posted @ 2016-04-15 14:39 lhxandcxy 阅读(90) 评论(0) 推荐(0)
摘要: Given a linked list, remove the nth node from the end of list and return its head. For example, 思路一: 计算结点总数,可以用龟兔算法得到,然后删除倒数第n个结点 思路二: 先跑到第n+1个结点,然后从第 阅读全文
posted @ 2016-04-15 14:15 lhxandcxy 阅读(90) 评论(0) 推荐(0)
摘要: 1.eclipse新建工程,导入解压的Hive文件夹的lib的jar包,写UDF的代码,jdk版本要跟运行hadoop的jdk版本相同package com.test_udf;import org.apache.hadoop.hive.ql.exec.UDF; public class test e... 阅读全文
posted @ 2015-07-28 17:01 lhxandcxy 阅读(219) 评论(0) 推荐(0)