- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 [Leetcode]Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1: nums1 = [1, 3] num
2017-08-26 21:28:50 198
原创 [Leetcode]Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 将一个罗马数值字符串转化为相应的int。 此题跟Integer to Roman有异曲同工之蛋疼,对于不熟悉罗马数字的童鞋就是一个噩梦。整体来说,罗马数字中的字符代表的数值大小,一般是
2017-08-25 16:46:30 177
原创 [Leetcode]Single Number
Given an array of integers, every element appears twice except for one. Find that single one.Note: Your algorithm should have a linear runtime complexity. > Could you implement it without using extra
2017-08-25 16:04:55 147
原创 [Leetcode]Add Two Numbers链表数相加
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it
2017-08-25 14:10:31 301
原创 [Leetcode]Reverse String
Write a function that takes a string as input and returns the string reversed.Example: Given s = “hello”, return “olleh”. 我最开始是这么写的class Solution(object): def reverseString(self, s): """
2017-08-10 19:16:15 150
原创 [Leetcode]Nim Game
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the
2017-08-10 17:29:59 248
原创 【LeetCode】Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same ele
2017-08-10 16:46:44 144
原创 hive中count函数用法总结
count(*):所有行进行统计,包括NULL行count(1):所有行进行统计,包括NULL行count(column):对column中非NULL进行统计count(distinct column):对column中非NULL进行去重统计count(distinct col1,col2,...):对col1、col2,...多个字段同时去重并统计。count(CASE
2017-08-03 16:36:10 15727
转载 hive中select语法
Select语法SELECT [ALL | DISTINCT] select_expr, select_expr, ...FROM table_reference[WHERE where_condition][GROUP BY col_list][CLUSTER BY col_list | [DISTRIBUTE BY col_list] [SORT BY col_
2017-08-03 16:34:22 1428
转载 hive的UDF 函数
hive的UDF 函数Hive内部自定义函数UDFHIVE UDF整理(一)关系运算等值比较: =语法:A = B 操作类型: 所有基本类型描述: 如果表达式A与表达式B相等,则为TRUE;否则为FALSE举例:hive> select 1 from dual where 1=1;1不等值比较: 语法: A 操作类型: 所有基本类型描述:
2017-08-03 11:07:32 1407
转载 hive日期总结
1.日期函数 to_date(string expr)返回类型:string描述:返回时间字符串日期部分to_date(expr) - Extracts the date part of the date or datetime expression expr实例:Hive> select to_date('2014-09-16 15:50:08.119')
2017-08-01 10:55:27 539
Kaggle give me some credit数据集
2020-05-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人