自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (6)
  • 收藏
  • 关注

原创 [LeetCode 6.17] Surrounded Regions

Surrounded RegionsGiven a 2D board containing ‘X’ and ‘O’ (the letter O), capture all regions surrounded by ‘X’.A region is captured by flipping all 'O’s into 'X’s in that surrounded region.Example:X X X XX O O XX X O XX O X XAfter running your fu

2020-06-17 20:32:47 73

原创 [LeetCode 6.16] Validate IP Address

Validate IP AddressWrite a function to check whether an input string is a valid IPv4 address or IPv6 address or neither.IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255

2020-06-16 22:47:36 91

原创 [LeetCode 6.14] Cheapest Flights Within K Stops

Cheapest Flights Within K StopsThere are n cities connected by m flights. Each flight starts from city u and arrives at v with a price w.Now given all the cities and flights, together with starting city src and the destination dst, your task is to find t

2020-06-15 22:18:32 116

原创 [LeetCode 6.13] Largest Divisible Subset

Largest Divisible SubsetGiven a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies:Si % Sj = 0 or Sj % Si = 0.If there are multiple solutions, return any subset is fine.Example

2020-06-15 21:06:45 111

原创 [LeetCode 6.15] Search in a Binary Search Tree

Search in a Binary Search TreeGiven the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node’s value equals the given value. Return the subtree rooted with that node. If such node doesn’t exist, you shoul

2020-06-15 20:51:25 64

原创 Ubuntu系统下常用配置总结

Ubuntu系统下常用配置总结Ubuntu安装完配置开发环境Ubuntu下截图工具flameshot的安装与使用Ubuntu系统安装无线网卡驱动Ubuntu18.04下安装搜狗输入法的详细步骤Ubuntu 18.04下安装Google Chrome

2020-06-13 10:54:46 115

原创 [leetCode 6.12] Insert Delete GetRandom O(1) Solution

Insert Delete GetRandom O(1) SolutionDesign a data structure that supports all following operations in average O(1) time.insert(val): Inserts an item val to the set if not already present.remove(val): Removes an item val from the set if present.getRa

2020-06-12 22:26:07 122

原创 [LeetCode 6.11] Sort Colors

Sort ColorsGiven an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the integers 0, 1, and 2 to represent the color red

2020-06-11 21:55:57 62

原创 Ubuntu 18.04系统中搭建Python开发环境

Ubuntu 18.04系统中搭建Python开发环境1.Ubuntu18.04首先是自带python3的,终端输入python3有响应,而输入pip或者pip3无反应。此时我们就需要安装pip3输入命令:sudo apt-get install python3-pip2.接下来我们来安装Pycharm社区版输入命令:snap install pycharm-community --classic3.移除pycharm输入命令:sudo snap remove pycharm-com

2020-06-11 19:55:20 407

原创 Ubuntu 18.04下安装Google Chrome

Ubuntu 18.04下安装Google Chrome进入Chrome官网下载地址:https://www.google.cn/intl/zh-CN/chrome/点击“下载Chrome”,进入下载页面:如图选择“ 64 位 .deb(适用于 Debian/Ubuntu)”,点击“接受并安装”。然后按提示操作即可完成。...

2020-06-11 19:48:59 494

原创 Ubuntu18.04下安装搜狗输入法的详细步骤

Ubuntu18.04下安装搜狗输入法的详细步骤第一步:安装Fcitx输入框架第二步 下载Linux版本的搜狗输入法第三步 安装Linux版本的搜狗输入法第四部 相应的设置第五步 最后配置安装完成,打开浏览器输入即可。第一步:安装Fcitx输入框架打开终端,运行以下命令:sudo apt install fcitx第二步 下载Linux版本的搜狗输入法打开搜狗输入法官网:点击输入法Linux版根据自己系统选择下载32bit或64bit第三步 安装Linux版本的搜狗输入法在终端中,进入

2020-06-11 18:11:48 1574

原创 Legacy启动模式下Windows10安装Ubuntu18.04双系统详细过程

Legacy启动模式下Windows10安装Ubuntu18.04双系统详细过程安装准备确认系统启动模式安装环境安装所需用软碟通将Ubuntu的镜像写入 U 盘安装Ubuntu系统Ubuntu系统安装无线网卡驱动时间校准安装准备确认系统启动模式使用快捷键win+r打开运行,并输入msinfo32,回车:在打开的系统信息里找到BIOS模式:传统代表Legacy模式; UEFI就是UEFI模式。安装环境本人的是联想Y430P,Legacy模式。两块硬盘(一个固态256G,一个机械硬盘)。已经在

2020-06-11 11:19:59 1965

原创 Ubuntu 18.04系统安装无线网卡驱动&无线无法上网

Ubuntu系统安装无线网卡驱动首先连接有线网络保证网络正常然后执行以下两条命令sudo apt-get updatesudo apt install broadcom-sta-dkms然后重启系统解决问题。若双系统重启进入Ubuntu系统时黑屏,参考win10和Ubuntu双系统启动时进入Ubuntu系统出现黑屏的解决方法解决。...

2020-06-11 11:15:27 1849 1

原创 win10和Ubuntu双系统启动时进入Ubuntu系统出现黑屏的解决方法

win10和Ubuntu双系统启动时进入Ubuntu系统出现黑屏的解决方法现象:可能是Ubuntu更新后重启选择进入Ubuntu时出现黑屏问题分析:可能是由于更新后,grub没有进行更新,所以无法进入启动引导解决方法:进入Windows系统,使用easybcd删除原Ubuntu引导,重新添加引导条目。根据自己电脑情况选择下面两张图中的其中一种操作步骤。若不知道选择哪个时,先试第一个若无法启动再试一下第二个。然后重启电脑即可。...

2020-06-11 11:14:25 4014

原创 [LeetCode 6.10] Search Insert Position

Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.Example 1:Input: [1,3,5,6], 5Outp

2020-06-10 20:24:17 73

原创 [LeetCode 6.9] Is Subsequence

Is SubsequenceGiven a string s and a string t, check if s is subsequence of t.A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of

2020-06-09 17:08:31 87

原创 [LeetCode 6.8] Power of Two

Power of TwoGiven an integer, write a function to determine if it is a power of two.Example 1:Input: 1Output: true Explanation: 20 = 1Example 2:Input: 16Output: trueExplanation: 24 = 16Example 3:Input: 218Output: falsePython3 Solution:clas

2020-06-09 16:52:31 71

转载 Legacy启动模式下安装Windows10+Ubuntu18.04.1双系统

<div id="content_views" class="markdown_v...

2020-06-09 11:38:33 2363

原创 [LeetCode 6.7] Coin Change 2

Coin Change 2You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you have infinite number of each kind of coin.Example 1:Input:

2020-06-08 10:46:21 96

原创 [LeetCode 6.6] Queue Reconstruction by Height

Queue Reconstruction by HeightSuppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of this person who have a height

2020-06-06 20:53:28 106

原创 [LeetCode 5.9] Valid Perfect Square

Valid Perfect SquareGiven a positive integer num, write a function which returns True if num is a perfect square else False.Follow up: Do not use any built-in library function such as sqrt.Example 1:Input: num = 16Output: trueExample 2:Input: num =

2020-06-06 10:11:14 77

原创 [LeetCode 6.5] Random Pick with Weight

Random Pick with WeightGiven an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proportion to its weight.Note:1 <= w.length <= 100001 <= w[i] <= 10^5pic

2020-06-06 09:45:55 115

原创 [LeetCode 6.3] Two City Scheduling

Two City SchedulingThere are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th person to city B is costs[i][1].Return the minimum cost to fly every person to a city

2020-06-05 12:03:07 87

原创 [LeetCode 6.4] Reverse String

Reverse StringWrite a function that reverses a string. The input string is given as an array of characters char[].Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.You may assume

2020-06-05 11:32:58 71

原创 [LeetCode 5.8] Check If It Is a Straight Line

Check If It Is a Straight LineYou are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight line in the XY plane.Example 1:Input: coordinates = [[1,2],[2,3],[3,4],[4

2020-06-02 17:33:27 96

原创 [LeetCode 6.2] Delete Node in a Linked List

Delete Node in a Linked ListWrite a function to delete a node (except the tail) in a singly linked list, given only access to that node.Given linked list – head = [4,5,1,9], which looks like following:Example 1:Input: head = [4,5,1,9], node = 5Output

2020-06-02 17:14:15 71

原创 [LeetCode 6.1] Invert Binary Tree

Invert Binary TreeInvert a binary tree.Example:Input: 4 / \ 2 7 / \ / \1 3 6 9Output: 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired by this original tweet by Max Howell:Google: 90% of our

2020-06-01 16:11:14 102

直接序列扩频通信系统_VHDL代码及文档.zip

使用VHDL语言进行直接序列扩频通信系统的仿真,实现信源产生、解扰、交织、直扩、BPSK调制、解调、相关、解交织、解扰、判决等一系列功能。PS:有同学反映文件损坏,又重新上传了一遍

2019-02-21

MATLAB通信系统仿真代码

MATLAB数字通信仿真(0/1数据产生,16QAM调制,插值,成型滤波,匹配滤波,采样,16QAM解调,判决,误码率计算)

2019-01-26

4PSK和QPSK调制及成型滤波sinc

数字通信仿真MATLAB,4PSK和QPSK调制及成型滤波器sinc

2019-01-26

【MATLAB】利用FFT分析其频谱

利用MATLAB生成正弦信号并利用FFT对其频谱进行分析,并比较不同情况的异同

2019-01-26

【MATLAB代码】随机信号和高斯信号的生成及概率密度函数PDF的分析

利用MATLAB进行随机信号和高斯信号的生成及概率密度函数PDF的分析

2019-01-26

多线程优先级示例_赛马

多核课程 多线程优先级示例_赛马 通过例子来演示多线程优先级

2017-12-04

空空如也

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

TA关注的人

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