原创 Cracking the coding interview--Q2.1

原文轉載自:http://hawstein.com/posts/2.1.html 題目 原文: Write code to remove duplicates from an unsorted linked list. FOL

原创 Cracking the coding interview--Q3.1

原文轉載自:http://hawstein.com/posts/3.1.html 題目 原文: Describe how you could use a single array to implement three stack

原创 Cracking the coding interview--Q3.3

原文轉載自:http://hawstein.com/posts/3.3.html 題目 原文: Imagine a (literal) stack of plates. If the stack gets too high, i

原创 Cracking the coding interview--Q1.6

原文轉載自:http://hawstein.com/posts/1.6.html 題目 原文: Given an image represented by an NxN matrix, where each pixel in t

原创 使用CXF和Spring發佈Soap服務

發佈Soap服務 發佈Soap服務修改bean.xml即可: 通過http://localhost:8080/test/service可以看到發佈的服務

原创 Cracking the coding interview--Q1.5

原文轉載自:http://hawstein.com/posts/1.5.html 題目 原文: Write a method to replace all spaces in a string with ‘%20’. 譯文:

原创 ActiveMQ(三):使用Topic方式發送消息

Topic方式發送消息: 只需修改配置文件xml即可,將Queue方式修改爲Topic方式,修改如下: 注意:在啓動消息發送端MessageSender和消息接收端MessageReceiver時需要啓動兩個工作空間。因爲

原创 Cracking the coding interview--Q3.4

原文轉載自:http://hawstein.com/posts/3.4.html 題目 原文: In the classic problem of the Towers of Hanoi, you have 3 rods and

原创 Cracking the coding interview--Q2.4

題目 原文: You have two numbers represented by a linked list, where each node contains a single digit. The digits are st

原创 Cracking the coding interview--Q3.2

原文轉載自:http://hawstein.com/posts/3.2.html 題目 原文: How would you design a stack which, in addition to push and pop, a

原创 ActiveMQ(二):使用隊列Queue方式發送消息

代碼示例:隊列queue方式發送消息 配置activeMQ服務信息與實現springjms的對應接口 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www

原创 Cracking the coding interview--Q2.2

原文轉載自:http://hawstein.com/posts/2.2.html 題目 原文: Implement an algorithm to find the nth to last element of a singly

原创 ActiveMQ(一):簡述ActiveMQ及其機制

ActiveMQ 是Apache出品,最流行的,能力強勁的開源消息總線。ActiveMQ 是一個完全支持JMS1.1和J2EE 1.4規範的 JMS Provider實現,儘管JMS規範出臺已經是很久的事情了,但是JMS在當今的J

原创 ActiveMQ(四):Topic方式使用MessageListener監聽的方式接收消息

發佈/訂閱模式 消息發佈者: xml配置: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/b

原创 Cracking the coding interview--問題與解答 目錄

目錄 Chapter 1 | Arrays and Strings 1.1 Implement an algorithm to determine if a string has all unique characters.