自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 我的新博客:yuyuforest.com

现在的CSDN博客主要是用来写算法作业给老师看的,新的博客建于开始写算法作业之后,如果你喜欢的话,欢迎去我的新家作客:)

2018-11-18 08:54:09 239

原创 CFLP

文章目录题目数据结构DataSolution贪心算法设计代码模拟退火设计代码主程序结果贪心算法模拟退火题目现有若干家工厂,若干个顾客。每个顾客有不同的需求量,每家工厂有不同的容量、不同的开厂成本,对每个顾客也有不同的分派成本。给出这些数据,求关于顾客选择的工厂的一个解,使得总的开厂成本、分派成本尽可能地小。数据结构Data从文件中读取并存放顾客需求量、工厂容量、开厂成本、分派成本等数据。...

2018-12-23 22:33:14 565

原创 LeetCode #85 Maximal Rectangle

文章目录题目分析算法1算法2(Week 10 算法博客)题目Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return its area.Example:Input:[ ["1","0","1&

2018-11-17 21:05:35 226

原创 LeetCode #316 Remove Duplicate Letters

文章目录题目分析贪心算法(Week 9 算法博客)题目Remove Duplicate LettersGiven a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure...

2018-11-16 21:11:16 623 1

原创 LeetCode #153 Candy

LeetCode # 153 Candy文章目录LeetCode # 153 Candy题目分析算法1. 暴力算法2. 一个数组,两次遍历3. 算法2的变种:贪心算法(Week 8 算法博客)题目There are N children standing in a line. Each child is assigned a rating value.You are giving can...

2018-11-10 11:52:43 301

原创 LeetCode #854 K-Similar Strings

文章目录题目分析题目K-Similar StringsStrings A and B are K-similar (for some non-negative integer K) if we can swap the positions of two letters in A exactly K times so that the resulting string equals B.Gi...

2018-11-10 11:48:00 494

原创 LeetCode #57 Insert Interval

文章目录题目分析结语(Week 6 算法博客)Insert Interval题目Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially so...

2018-10-20 01:57:38 152

原创 Go语言开发selpg命令行程序

文章目录任务先行知识flag与pflag异常处理缓冲区和文件读写程序逻辑及实现main定义结构体以存放命令行参数绑定命令行参数并解析检查参数读取输入,进行输出部分测试结语任务用 Go 语言实现一个类 selpg 程序,关于该程序的详细介绍,可见:开发Linux命令行实用程序该程序的 C 语言源码实现:selpg.cselpg 的用法如下:selpg --s startPage --e e...

2018-10-12 09:50:21 332

原创 LeetCode #862 Shortest Subarray with Sum at Least K

文章目录题目分析过程暴力求解寻找优化由end寻找begin结语题目Shortest Subarray with Sum at Least KReturn the length of the shortest, non-empty, contiguous subarray of A with sum at least K.If there is no non-empty subarray w...

2018-10-08 10:04:15 605 2

原创 LeetCode #126 Word Ladder II

文章目录题目分析构建两端之间的最短路径图记录所有路径歧路:节点分裂正途:不删除边的DFS算法递归实现循环&栈实现测试代码(第四周算法博客)因为国庆假和调课,直到现在本人才把上一周的算法博客发出来。不过我在这道题上也走了不少弯路,只能说自己的思维确实还需要锻炼。这篇博客详细地描述了我的思路过程,当是一个记录,也希望它能提醒我以后进行更为全面高效的思考。下面来看看题目:题目Word...

2018-10-03 17:11:00 245

原创 Windows下Go语言的安装和运行

Application Name:此处填写想呈现给用户的应用名称。Company domain:包名限定符,Android Studio会将这个限定符应用于每个新建的Android项目。Package Name:应用的包命名空间(类似于Java的包),该包名在同一Android系统上所有已安装的应用中具有唯一性,我们可以独立地编辑该包名。Project location:操作系统存放项目的...

2018-09-27 18:48:40 14066

原创 LeetCode #149 Max Points on a Line

(Week 3 算法作业)文章目录题目分析12ms算法其他优秀算法8ms算法sample①sample②4ms算法sample①sample②结语题目Max Points on a LineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.E...

2018-09-23 20:23:17 167

原创 Windows下Android开发环境搭建

安装Java环境安装Android Studio下载安装包安装过程安装Java环境在安装Android Studio前,要先安装好Java。由于我很久之前已经装好了Java,故在此不再介绍Java的安装过程,参考网上教程即可:Java环境的安装配置安装Android Studio下载安装包Android安装包链接如果因为网络问题不能安装,可...

2018-09-16 13:48:59 295

原创 Git学习笔记 #1 日常使用总结

安装安装教程git所有版本下载git for windows下载常用命令

2018-09-16 09:42:56 306

原创 LeetCode #41 First Missing Positive

(Week 2 算法作业)题目:分析:算法1算法2题目:First Missing PositiveGiven an unsorted integer array, find the smallest missing positive integer.Example 1:Input: [1,2,0]Output: 3Example 2:...

2018-09-15 14:25:23 176

原创 VirtualBox+CentOS搭建私有云

1. 实验目的 初步了解虚拟化技术,理解云计算的相关概念 为后续课程提供统一的编程与实验环境 理解系统工程师面临的困境 2. 实验环境与要求 实验需要硬件虚拟化(AMD-V 或 Intel-VT)支持,部分旧笔记本不支持。 用户可通过互联网,使用微软远程桌面,远程访问你在PC机上创建的虚拟机。 虚拟机操作系统 Centos,Ubuntu,或你喜...

2018-09-13 01:13:08 827

原创 LeetCode #23 Merge k Sorted Lists

(Week 1 作业)题目:https://leetcode.com/problems/merge-k-sorted-lists/description/Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Difficulty: Har...

2018-09-09 23:32:38 148

原创 LeetCode #46 Permutations

(Week 1 算法作业)题目:https://leetcode.com/problems/permutations/description/Given a collection of distinct integers, return all possible permutations.Difficulty: MediumExample:Input: [1,2,3]Ou...

2018-09-09 22:58:14 226

原创 Unity3D制作巡逻兵小游戏

一、主体代码架构说明二、发布与订阅模式相关类图C#中的实现:delegate委托类型和event事件机制意义在本次游戏中的具体应用三、游戏主要行为分析1. 巡逻兵的行为与其他物体/角色相遇的处理相关动作:行走,转向2. 玩家行为3. 其他道具Github上的项目代码和视频链接一、主体代码架构说明 类 作用 Gam...

2018-05-11 23:56:06 1027

原创 我在中东肝PS

我在中东写代码 我在中东肝PS目录学习和PS食在中东中东风光

2016-10-04 14:43:55 683 12

空空如也

空空如也

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

TA关注的人

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