自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 15720

转载 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数据集

Give Me Some Credit是Kaggle上关于信用评分的项目,通过改进信用评分技术,预测未来两年借款人会遇到财务困境的可能性。银行在市场经济中发挥关键作用。 他们决定谁可以获得融资,以及以何种条件进行投资决策。 为了市场和社会的运作,个人和公司需要获得信贷。信用评分算法可以猜测违约概率,这是银行用于确定是否应授予贷款的方法。目标是建立一个借款人可以用来帮助做出最佳财务决策的模型。

2020-05-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除