自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 设计模式学习之抽象类以及接口

设计模式学习之抽象类以及接口本人理解抽象类图示接口本人理解抽象类抽象类适用于多种行为抽象而出来的公共行为。抽象类定义通用的操作,实现类继承抽象类,对通用的操作进行具体化;图示抽象类package 设计模式.抽象类;import java.util.logging.Level;public abstract class Logger { protected abstract void doLogger(); private String name; private

2020-11-15 13:38:46 104

原创 leetcode 233 Number of Digit One

题目描述 Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example: Given n = 13, Return 6, because digit 1 occurred in...

2018-03-14 21:44:11 181

原创 leetcode75 - sorted color

题目描述 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the ...

2018-03-13 20:24:25 184

原创 leetcode215 - Kth Largest Element in an Array (JAVA版本)

题目描述 Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For example, Given [3,2,1,5,6,4] and k = 2,...

2018-03-13 19:28:56 146

原创 剑指offer_二进制1的个数

问题描述输入一个整数,输出该数二进制表示中1的个数。其中负数用补码表示。public class Solution { //解法一 循环次数为n二进制 1所在的最高位-最低位 /* public int NumberOf1(int n) { int count = 0; int flag = 1; while(flag...

2018-03-05 01:22:31 110

原创 nodejs - 关于jquery的put、delete ajax请求变成options的解决办法

情况介绍:node.js做后端服务器,3000的端口。前端浏览器是webstorm自带的63342端口。涉及到跨域访问代码如下。jquery: 此时使用执行put请求,调用上面的posthandler方法 之前说过,如果是post和get方法,那么都可以正常使用,如app.get和app.post这些都是可以的。但是如果采用app.put方法,则会提示options。表现为下面...

2018-03-03 19:23:58 4687 2

原创 LeetCode 93 子网 划分

题目: Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given “25525511135”, return [“255.255.11.135”, “255.255.111.35”]. (Order...

2018-02-28 21:38:20 351

原创 LeetCode 438 Find All Anagrams in a String解析

leetcode 438 解析题目描述 Given a string s and a non-empty string p, find all the start indices of p’s anagrams in s. Strings consists of lowercase English letters only and the length of both strings s and

2017-11-29 14:18:40 129

原创 material控件配置以及buttkernife配置

android开发中如果需要使用material design中的控件,需要在gradle中引入相关material的依赖。butterknife在Android studio中的配置以8.8.1版本为例。 第一步:依然是在project structure中引入依赖。 第二布:在moudle的gradle文件中添加如下代码即可 第三步:点击sysc now选项,便大功告成了。提醒:在ac

2017-09-07 20:36:28 262

原创 欢迎使用CSDN-markdown编辑器

Butterknife8.5.1依赖配置本Markdown编辑器使用[StackEdit][6]修改而来,用它写博客,将会带来全新的体验哦:添加以下依赖classpath ‘com.jakewharton:butterknife-gradle-plugin:8.5.1’(project build.gradle)moulde gradleapply plugin: ‘com.jakewharton.

2017-04-20 16:43:19 148

空空如也

空空如也

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

TA关注的人

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