自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

皮斯特劳沃

只有奋斗的现在,才是最好的状态。

  • 博客(222)
  • 资源 (1)
  • 收藏
  • 关注

原创 Leetcode_292_Nim Game

You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the

2016-06-20 22:43:01 2432

原创 Leetcode_344_Reverse String

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/50768550 Write a function that takes a string as input and returns the string reversed.Example: Given s = “hello”, return “

2016-06-15 22:27:08 2250

原创 唯有如此,才能更强

我有愧于你们,一起走过了多少个春夏秋冬,经历过多少风吹雨打,无论我去哪里,你们都会伴随着,给我带来知识和力量,鼓励着我前行。然而就在近半年里,我却将你们忘却,将你们遗弃在角落旮旯,任由尘埃铺满在你们的脸庞,任由潮湿侵蚀你们的身躯,你们依旧对我微笑,倾听着我的心声,分担着我的忧伤。我有愧于你们,只希望从现在开始,你们能伴随我每一天,我们一起玩耍,一起开心,我们一起思考,一起学习,一起进步。当你光滑的

2016-03-17 00:48:53 1658 3

原创 Json反序列化之ObjectMapper(自定义实现反序列化方法)

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/50868105对于服务器端开发人员而言,调用第三方接口获取数据,将其“代理”转化并返给客户端几乎是家常便饭的事儿。    一般情况下,第三方接口返回的数据类型是json格式,而服务器开发人员则需将json格式的数据转换成对象,继而对

2016-03-12 22:41:07 18651 4

原创 Leetcode_299_Bulls and Cows

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/50768550You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your friend

2016-02-29 21:49:45 1934

原创 Leetcode_260_Single Number III

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/50276549Given an array of numbers nums, in which exactly two elements appear only once and all the other elements a

2015-12-12 18:00:10 1011

原创 linux上部署rmi+memcache服务

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/50020437     最近在学习linux上搭建Rmi+Memcache服务等相关技术。开始学习的过程有些艰辛,也遇到了不少的问题,但问题最后都迎刃而解。下面将学习总结分享给大家,主要包括安装linux虚拟机,在虚拟机上搭建服务的运行环境

2015-11-24 23:27:15 2418

原创 java实现Quartz定时功能

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/49975443   最近在学习定时相关的技术。当前,几乎所有的互联网公司都会涉及定时相关的业务。比如网站首页的定时更新,内容的定时推送等等都会涉及。在找工作面试中,面试官也会问相关的问题。所以,在对定时学习和理解的基础上,简单地整理了一下学

2015-11-22 09:06:10 4267

原创 Leetcode_278_First Bad Version

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/49719255You are a product manager and currently leading a team to develop a new product. Unfortunately, the l

2015-11-08 16:22:58 2048

原创 Leetocde_290_Word Pattern

http://blog.csdn.net/pistolove/article/details/49717803Given a pattern and a string str, find if str follows the same pattern.Here follow means a full mat

2015-11-08 13:00:57 1328

原创 Leetcode_257_Binary Tree Paths

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/49432057Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree:

2015-10-26 23:25:54 1462

原创 Leetcode_263_Ugly Number

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/49431329Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose p

2015-10-26 23:04:42 1543

原创 Leetocde_242_Valid Anagram

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48979767Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "ana

2015-10-08 22:26:05 2344 3

原创 Leetcode_238_Product of Array Except Self

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48598939Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the pr

2015-09-20 18:53:25 1317

原创 Leetcode_252_Implement Stack using Queues

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48598773Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() --

2015-09-20 18:21:08 1157

原创 Leetcode_235_Lowest Common Ancestor of a Binary Search Tree

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48392713Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.Acc

2015-09-12 11:31:08 1216

原创 Leetcode_232_Implement Queue using Stacks

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48392363Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop

2015-09-12 11:01:23 2036

原创 Leetcode_198_House Robber

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/47680663You are a professional robber planning to rob houses along a street. Each house has a certain amount of money

2015-08-15 12:02:28 3693

原创 Leetcode_237_Delete Node in a Linked List

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/47334649Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are

2015-08-07 09:53:09 1760

原创 Leetcode_234_Palindrome Linked List

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/47334465Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?思路:(1)题意为给定一个链表,判断该链表是否“回文”,即该链表中每

2015-08-07 09:44:27 1173

原创 Leetcode_231_Power of Two

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/47334243Given an integer, write a function to determine if it is a power of two.思路:(1)题意为给定一个正整数,判断该正整数是否为2的幂。(2)该题属于Lettcode中的简单题。只需循环判断正整数N对2求余是否为0,如果不为0,返回false;如果

2015-08-07 09:33:06 1038

原创 Git常用命令

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/47315569最近在学习git常用命令和基本操作,下面将给出初学者可参考的几个网址以及常见的git命令,希望对大家有所帮助。git初学参考学习网站:http://www.admin10000.com/document/5374.html  git使用详细教程http://www.oschina.net/question/565065_68194  git

2015-08-06 14:08:29 1070

原创 Leetcode_223_Rectangle Area

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46868363Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.A

2015-07-13 22:02:28 1613

原创 Leetcode_190_Reverse Bits

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46868017Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented

2015-07-13 21:33:35 2571

原创 Leetcode_228_Summary Ranges

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46762039Given a sorted integer array without duplicates, return the summary of its ranges.For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"].思路:(1)题意为给定

2015-07-05 11:07:31 1401

原创 Leetcode_205_Isomorphic Strings

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46530865Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a ch

2015-06-17 10:27:44 2002

原创 设计模式05_创建者模式

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46489147创建者模式:将一个复杂对象的构建和其表示分离开来,使得同样的构建过程可以创建出不同的表示。例如我们需要盖一栋楼房,需要工人来砌墙,需要设计师来设计房子怎么盖,而这里的设计师本身是不干活的,它只是负责下命令让工人

2015-06-14 08:32:35 2142 1

原创 设计模式04_抽象工厂模式

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46440915抽象工厂模式是对象的创建模式,它是工厂方法模式的进一步推广。抽象工厂模式与工厂方法模式的最大区别就在于工厂方法模式针对的是一个产品等级结构;而抽象工厂模式则需要面对多个产品等级结构。假设一个子系统需要一些产品对象,而这些产品又属于一个以上的产品等级结构。那么为了将消费这些产品对象的责任和创建这些产品对象的责

2015-06-10 13:40:01 1919

原创 设计模式03_工厂方法模式

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46402017工厂方法模式:定义了一个创建对象的接口,但由子类来决定要实例化的的类是哪一个。工厂方法让类把实例化推迟到子类中。减少了应用程序和具体类之间的依赖进行松耦合。OO原则:依赖抽象,不要依赖具体类抽象产品角色:package com.design.factoryMethod;//抽象产品角色public abstract clas

2015-06-07 16:54:58 1437

原创 设计模式02_简单工厂模式

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46400991本文主要介绍简单工厂模式,主要通过代码的形式进行展示,对于程序员来说我想观看代码进行理解比文档来的直接和快些。简单工厂模式(simple factory)是类的创建模式,又叫静态工厂方法(static fac

2015-06-07 15:17:14 1991 2

原创 Leetcode_204_Count Primes

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46366207Description:Count the number of prime numbers less than a non-negative number, n.思路:(1)题意为给定整数n,求解n以内的整数中有多少个素数(质数)。(2)该题涉及到数学相关的知识。首先,看下素数的定义:质数(prime

2015-06-04 19:38:22 1236

原创 Leetcode_217_Contains Duplicate

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46271159Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it s

2015-05-30 09:16:23 1391

转载 学习英文之社区,博客及源码

作者:圣殿骑士 出处:http://www.cnblogs.com/KnightsWarrior/ 关于作者:专注于微软平台项目架构、管理和企业解决方案。自认在面向对象及面向服务领域有一定的造诣,熟悉设计模式、TDD、极限编程、领域驱动、架构设计、敏捷开发和项目管理。现主要从事WinForm、ASP.NET、WPF、WCF、WF、Silverlight 、Biztalk、Windows A

2015-05-26 13:21:47 3714

原创 Leetcode_203_Remove Linked List Elements

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/45868027Remove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 -->

2015-05-20 10:57:04 1149

原创 Leetcode_206_Reverse Linked List

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/45739753    Reverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could you implement both?思

2015-05-15 08:15:48 1514

原创 Leetcode_202_Happy Number

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/45396585Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace th

2015-04-30 16:35:40 2210 5

原创 100个Myeclipse6.5免费注册码

下面提供了100个MyEclipse6.5的注册码供大家使用:

2015-04-23 13:15:01 7916

原创 重构笔记——引入本地扩展

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/44958839        在上一篇文章中介绍了“引入外加函数”。本文将介绍“引入本地扩展”这种重构手法。        下面让我们来学习这种重构手法吧。开门见山        发现:你需要为服务类提供一些额外函数,但你无法修改这个类。        解决:建立一个新类,使它包含这些额外函数。让这个扩展品成

2015-04-09 13:32:17 2397 1

原创 Java常见运算符整理

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/44724267本文主要介绍Java中常见的运算符,重点介绍了逻辑运算符和位运算符。希望对你有所帮助。算术运算符  (1)一元运算符:     正(+)、负(-)、加1(++)和减1(--)4个。    加1、减1运算符只允许用于数值类型的变量,不允许用于表达式中。加1、减1运算符既可放在变量之前(如++i),也可放在变量之后

2015-03-29 09:00:16 2611

原创 Leetcode_191_Number of 1 Bits

本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/44486547Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary

2015-03-20 08:11:25 1661

决策的艺术思维导图精华整理

《决策的艺术》,简单地说,决策就是做决定、拿主意,无论是我们人生中的关键时刻,还是日常生活的大事小情,都需要我们做出各种决策。然而,不同的人做出的决定总是大相径庭,有的成功,有的失败。那么,如何做出一个英明的决策,就显得相当重要了。在这本书里,三位决策高手为你总结了,做出一个英明决策所需要的八个要素:分别是问题、目标、备选方案、结果、取舍、不确定性、风险承受力和相关联的决策。这八大要素中,前五个是重中之重,作者根据它们的英文单词首字母,把这5点缩写为 PROACT,本书讲的英明决策方法,就叫作PROACT法。决策的艺术读后感和决策的艺术读书笔记总结如下。

2020-10-24

空空如也

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

TA关注的人

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