自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 LeetCode 8. String to Integer (atoi)

题目来源:https://leetcode.com/problems/string-to-integer-atoi/submissions/问题描述8. String to Integer (atoi)MediumImplement atoi which converts a string to an integer.The function first discards as...

2019-02-27 15:53:06 111

原创 LeetCode 7. Reverse Integer

题目来源:https://leetcode.com/problems/reverse-integer/问题描述7. Reverse IntegerEasyGiven a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Inpu...

2019-02-24 22:59:55 102

原创 LeetCode 6. ZigZag Conversion

题目来源:https://leetcode.com/problems/zigzag-conversion/问题描述6. ZigZag ConversionMediumThe string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want...

2019-02-24 00:49:53 105

原创 LeetCode 5. Longest Palindromic Substring(最长回文子串)

题目来源:https://leetcode.com/problems/longest-palindromic-substring/问题描述5. Longest Palindromic SubstringMediumGiven a string s, find the longest palindromic substring in s. You may assume that th...

2019-02-22 00:46:34 104

原创 LeetCode 4. Median of Two Sorted Arrays Hard(二分查找)

题目来源:https://leetcode.com/problems/median-of-two-sorted-arrays/问题描述4. Median of Two Sorted ArraysHardThere are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median ...

2019-02-20 23:58:40 177

原创 torch.Tensor的4种乘法

torch.Tensor的4种乘法torch.Tensor有4种常见的乘法:*, torch.mul, torch.mm, torch.matmul. 本文抛砖引玉,简单叙述一下这3种乘法的区别,具体使用还是要参照官方文档。*a与b做*乘法,原则是如果a与b的size不同,则以某种方式将a或b进行复制,使得复制后的a和b的size相同,然后再将a和b做element-wise的乘法。下面以...

2019-02-17 00:14:42 155938 13

转载 【转载】Python3内建函数

原文链接:Python标准库(3.x): 内建函数扫盲Built-in Functionsabs()dict()help()min()setattr()all()dir()hex()next()slice()any()divmod()id()object()sorted()ascii()enumerate()  &amp

2019-02-14 11:05:11 313

原创 Python一行代码画爱心

 代码print('\n'.join([''.join([('DaKaoLaLovesPython'[(x-y)%8]if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else' ')for x in range(-30,30)])for y in range(15,-15,-1)]))效果

2019-02-01 20:01:35 15072 2

空空如也

空空如也

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

TA关注的人

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