![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OOP
文章平均质量分 70
OlympianZ
这个作者很懒,什么都没留下…
展开
-
OOP Design (Head First Design Patterns) 学习笔记--01 SimUDuck app
Sharpen your pencilCustomers want more features or new functionalistsCompany decided it is going with another database vendor and it is also purchasing its data from another supplier that uses a原创 2014-01-01 06:40:54 · 1196 阅读 · 0 评论 -
Cracking The Coding Interview 3rd -- 1.1*
Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structure?Solution 1: Using additional space. There are 256 possible character原创 2014-01-13 07:38:17 · 780 阅读 · 0 评论 -
Cracking The Coding Interview 3rd -- 1.5*
Implement a method to perform basic string compression using the counts of repeated characters. For example, the string "aabcccccaaa" would become a2b1c5a3. If the "compressed" string would not become原创 2014-01-14 10:30:12 · 1115 阅读 · 0 评论 -
Cracking The Coding Interview 3rd -- 1.4
Write a method to replace all spaces in a string with '%20'. You may assume that the string has sufficient space at the end of the string to hold the additional characters, and that you are given the原创 2014-01-13 12:53:24 · 906 阅读 · 0 评论 -
Cracking The Coding Interview 3rd -- 00
www.CrackingTheCodingInterview.com原创 2014-01-12 12:49:45 · 665 阅读 · 0 评论 -
Cracking The Coding Interview 3rd -- 1.3
Given two strings, write a method to decide if one is a permutation of the other.Solution 1:First, we need to compare if two strings have the same size, if different then they can't be permuta原创 2014-01-13 11:35:32 · 899 阅读 · 0 评论 -
Cracking The Coding Interview 3rd -- 1.2
Implement a function void resverse(char* str) in C or C++ which reverse a null-terminated string.Solution 1:We could implement the function in place with only one iteration by swapping First原创 2014-01-13 10:33:38 · 664 阅读 · 2 评论 -
OOP Design (Head First Design Patterns) 学习笔记--05 The factory Pattern
When you see "new", think "concrete"!1. Identify what varies2. Encapsulate object creationFactories handles the details of object creation.原创 2014-01-03 13:30:17 · 897 阅读 · 0 评论 -
OOP Design (Head First Design Patterns) 学习笔记--04 The decorator pattern
Design PrincipleClasses should be open for extension, but closed for modification.Goal is to allow classes to be easily extended to incorporate new behavior without modifying existing code.M原创 2014-01-03 00:05:17 · 885 阅读 · 0 评论 -
OOP Design (Head First Design Patterns) 学习笔记--03 Observer Pattern
Meet the Observer PatternPublishers + Subscribers = Observer PatternWe call the publisher the SUBJECT, and the subscribers theOBSERVERS.原创 2014-01-02 09:30:00 · 888 阅读 · 0 评论 -
OOP Design (Head First Design Patterns) 学习笔记--02 Summary One
The power of a shared pattern vocabularyShared pattern vocabularies are POWERFULPatterns allow you to say more with lessTalking at the pattern level allows you to stay "in the design" levelShare原创 2014-01-01 07:12:53 · 850 阅读 · 0 评论 -
Spring MVC on JBoss 7.1 final
How to Deploy simple Spring MVC on JBoss 7.1 Refer toSolution includes原创 2014-05-18 14:13:50 · 1046 阅读 · 0 评论