自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Git和Github的基本使用

前言最近想写个项目,正巧很多人推荐github,但我对git的使用不是很熟悉,所以花半天时间看了廖雪峰老师的Git,本篇文章,只是基于老师教程的一个总结归纳,以加深记忆,下面是廖雪峰老师的教程Git和GithubGit是种技术,由Linus完成设计和编写,Linus在1991年后创建Linux后,自由软件运动下开源思想蓬勃发展,全世界的程序员们都能参与进Linux内核的开发,起初是由Linus手工汇

2018-03-08 22:00:21 337

原创 Splinter基本用法+零基础的双鸭山抢课脚本

前言之前一直想写个抢课脚本,但是欧皇加身,选的都中,但今年好运气到了头,报道注册那天,看见心仪的课有三个名额,但是,因为学校教务处还没开始办理注册,眼睁睁的看着3个名额飞走,后面几天,150个满名额雷打不动的占着,故花一天学习了Python的Splinter库实现了抢课脚本,教程推荐官网资料PS:环境:Python36+Splinter0.77+chromedriver(调用google的exe程序

2018-03-07 12:11:59 2140 1

原创 算法分析与设计课程18——《算法概论》8.19

一、问题描述所谓风筝图是这样的,其顶点数为偶数(比如2n),且其中的n个顶点构成了一个团,剩余的n个顶点则由一条称为“尾巴”的路径连接,尾巴的某个端点与团中一个顶点相连。给定一个图和目标g,风筝图问题要求该图的一个包含2g个顶点的风筝子图。请证明该问题是NP-完全的。二、证明要求一个图G(V,E)能够构造出,包含2g个顶点的风筝子图,则需要该子图的g个顶点形成团G’,另外g个顶点连成一条线G”,且G

2017-07-14 22:27:10 379

原创 算法分析与设计课程17——435. Non-overlapping Intervals

一、题目描述——原题链接Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.Note: You may assume the interval’s end point is

2017-06-16 18:14:40 445

原创 算法分析与设计课程16——376. Wiggle Subsequence

一、题目——————原题链接A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may

2017-06-11 17:59:42 319

原创 算法分析与设计课程15——377. Combination Sum IV

Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.nums = [1, 2, 3]target = 4The possibl

2017-06-04 22:57:21 296

原创 算法分析与设计课程14——416. Partition Equal Subset Sum

Partition Equal Subset Sum Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements

2017-06-04 20:40:14 370

原创 算法分析与设计课程13——413. Arithmetic Slices

Arithmetic Slices A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.

2017-06-04 19:42:36 300

原创 算法分析与设计课程12——486. Predict the Winner

Preidct the Winner Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so on. Each time a pla

2017-06-04 18:22:54 356

原创 算法分析与设计课程11——467. Unique Substrings in Wraparound String(Medium)

467. Unique Substrings in Wraparound String

2017-05-17 22:52:25 254

原创 算法分析与设计课程10——523. Continuous Subarray Sum

523. Continuous Subarray Sum

2017-05-16 22:36:52 295

原创 算法分析与设计课程09——474. Ones and Zeroes(Medium)

Ones and Zeroes

2017-05-15 20:17:14 398

原创 算法分析与设计课程08——516. Longest Palindromic Subsequence(Medium)

一、问题描述————————链接Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000.Example 1:Input:"bbbab"Output:4One possible longest pali

2017-05-15 09:32:38 298

原创 算法分析与设计课程07——330. Patching Array(Hard)

Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be formed by the sum of some elements in the array. Return the min

2017-05-01 21:36:32 300

原创 算法分析与设计课程06——542. 01 Matrix(Medium)

542. 01MatrixGiven a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.The distance between two adjacent cells is 1.C++

2017-04-09 19:48:03 328

原创 算法分析与设计课程05——514. Freedom Trail(Hard)

Freedom Trail In the video game Fallout 4, the quest "Road to Freedom" requires players to reach a metal dial called the "Freedom Trail Ring", and use the dial to spell a specific keyword in order to open the

2017-03-27 00:29:04 387

原创 算法分析与设计课程04——Target Sum(Medium)

一、题目描述(中文)原题链接给出一个数组a[]和一个目标值S,对于数组中的每个数,只使用“+”和“-”运算操作符,使得数组a[]的组合等于S,如下例Input: nums is [1, 1, 1, 1, 1], S is 3. Output: 5Explanation: -1+1+1+1+1 = 3+1-1+1+1+1 = 3+1+1-1+1+1 = 3+1+1+1-1+1 = 3+1+

2017-03-20 09:05:39 561

原创 算法分析与设计课程03——Expression Add Operators(Hard)

Expression Add Operators Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the digits so they e

2017-03-12 15:54:32 322

原创 算法分析与设计课程02——315. Count of Smaller Numbers After Self (Hard难度)

Count of Smaller Numbers After Self (Hard难度),算法,C++,归并,分治算法

2017-03-04 11:43:09 475

原创 算法分析与设计课程01——495. Teemo Attacking

一、题目描述(中文)原题链接 在LLP的世界里,有一个名叫Teemo的英雄,他的攻击可以让他的敌人Ashe陷入中毒的状态。现在,我们将给出Teemo对Ashe发起攻击的时间点的上升序列,以及每次攻击后Ashe中毒状态持续的时间,你需要输出Ashe处于中毒状态的时间总和。假设Teemo的攻击发起在每个时间点的最开端,并且在发起攻击时便立刻使Ashe陷入中毒状态。例1:输入:[1.4],2输出:4

2017-02-25 21:52:23 334

原创 Java用反射机制在不看类的实现方法下查看类的相关信息

这个个人感觉如果不做安全的话,直接看API就行了,但教程上有,然后就总结一下吧,可能对于深入了解Java有作用,还可能对以后获取别人设计的类信息(不看他的实现部分下)有作用吧用静态方法查看Java类的名称直接上代码import javax.swing.JButton;import java.lang.ClassNotFoundException;class Test{

2016-11-23 20:54:42 412

原创 Java中的浅拷贝与深拷贝 + Serializable的传送链接

Java中的等号赋值Java的内存处理分为堆和栈,将基本变量(int , long, String变量值)存储在栈中,将对象指向堆的地址放在栈中,这就是说,如果对基本类型做等号赋值,就直接在栈中开辟内存空间存储,但对对象却只是重新开辟空间存储之前对象的地址。 如下代码给出说明class Test{ public static void main(String arg[]) {

2016-11-22 17:28:55 382

原创 简单计算器的实现

使用Java设计一个简单的计算器,能够实现加、减、乘、除运算,设计好后的计算器界面如下 要点: 1、通过JButton里的getText()方法,得到JButton上的字符串,然后单独用个String类型的变量存储用户期望计算表达式;2、在获取1+2/3这个要计算的式子后,按下等于符号,要求计算出正确结果,在Java里面,没有函数能够根据计算表达式就能得到结果,但在JavaScript里面却

2016-11-22 15:23:18 988

原创 利用数组随机抽取幸运观众

题目: 用个String数组存储观众(定最大为100),观众名字显示用JTextArea完成,右边中奖信息用带滚轮的JTextArea完成,加入观众用JTextField完成。 留坑: 1、JTable的使用; 2、String里的format()方法; 3、random的使用 4、Vector的使用 代码如下:import javax.swing.*;import java.a

2016-11-18 15:43:24 3837 1

原创 获取1维数组最小值(031)

题目描述是这样紫滴 题目太简单,基本没有什么难点,于是开始撸码 然后就留下一路坑(大概是周末填吧,如果作业不多的话~):1、JTextFild与JTextArea有什么区别 JTextArea,可以在里面输入多行文字 JTextField ,只能在里面输入一行文字 噗,咋这么简单,难不成我想复杂了2、JOptionPane,这个感觉还是挺厉害的,点一下就

2016-11-15 21:46:31 426

空空如也

空空如也

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

TA关注的人

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