自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 要使用 'sigmf',则必须授权、安装并启用了以下产品: Fuzzy Logic Toolbox

emmmm,这个错误不好复现,所以没有截图,见谅解决方式:虽然不知道为什么matlab连一个简单的sigmod函数都要搞一个函数库来专门收费,不过错误提示中已经有了“”“要安装一下产品Fuzzy Logic Toolbox”,那就安装就好了。1.打开matlab附加功能资源管理器如图:点击第一个,获取附加功能(图片右下角)。2.会跳出一个这样的界面,在右上角搜索框中填入:F

2018-04-23 10:47:56 4151

原创 LeetCode 7. 反转整数(简单模拟)

给定一个 32 位有符号整数,将整数中的数字进行反转。示例 1:输入: 123输出: 321 示例 2:输入: -123输出: -321示例 3:输入: 120输出: 21注意:假设我们的环境只能存储 32 位有符号整数,其数值范围是 [−231,  231 − 1]。根据这个假设,如果反转后的整数溢出,则返回 0。分析:注意事项就是为什么反转之后的整数会溢出?2^31是2147483...

2018-04-21 12:32:28 2137

原创 LeetCode 4. 两个排序数组的中位数 (归并思想)

题目:给定两个大小为 m 和 n 的有序数组 nums1 和 nums2 。请找出这两个有序数组的中位数。要求算法的时间复杂度为 O(log (m+n)) 。示例 1:nums1 = [1, 3]nums2 = [2]中位数是 2.0示例 2:nums1 = [1, 2]nums2 = [3, 4]中位数是 (2 + 3)/2 = 2.5解析:很基本的归并排序合并数组的思想,因为两个...

2018-04-20 20:33:59 1891 2

原创 HackerRank Sherlock and Cost (动态规划)

In this challenge, you will be given an array  and must determine an array . There is a special rule: For all , . That is,  can be any number you choose such that . Your task is to select a series of ...

2018-04-20 20:04:56 570

原创 HankerRank Equal(贪心)

题目如下:Christy is interning at HackerRank. One day she has to distribute some chocolates to her colleagues. She is biased towards her friends and plans to give them more than the others. One

2018-04-17 18:24:41 727

原创 LeetCode 786. K-th Smallest Prime Fraction(优先队列)

A sorted list A contains 1, plus some number of primes.  Then, for every p < q in the list, we consider the fraction p/q.What is the K-th smallest fraction considered?  Return your answer as an

2018-04-17 16:45:08 335

原创 The Coin Change Problem HckerRank(动态规划)

You are working at the cash counter at a fun-fair, and you have different types of coins available to you in infinite quantities. The value of each coin is already given. Can you determine the number ...

2018-04-14 20:23:38 480

原创 十大经典面试排序算法 C++代码实现

先实现,算作模板,以后再添加讲解:),如有问题,欢迎指教。代码如下:/*by kzl*/#include&lt;iostream&gt;#include&lt;cstring&gt;#include&lt;cstdio&gt;#include&lt;algorithm&gt;#include&lt;cmath&gt;#include&lt;queue&gt;#include...

2018-04-14 16:50:00 1632 4

原创 如何用wget下载jdk

坑点:直接在jdk官网右键复制链接地址,然后wget + 地址.这样下下来的文件只是一个HTML文件,然后当你tar 解压的时候,你会很惊喜的发现这个错误。gzip: stdin: not in gzip formattar: Child returned status 1tar: Error is not recoverable: exiting now因为HTML是不能够解压的,虽

2018-04-10 23:56:51 2922

空空如也

空空如也

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

TA关注的人

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