原创 leetcode刷題(24)——成對反轉單鏈表

Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's no

原创 leetcode刷題(142)——判斷單鏈表是否有環,如果有環,輸出環起始位置索引

Given a linked list, return the node where the cycle begins. If there is no cycle, return null. To represent a cycle i

原创 leetcode刷題(25)——k個結點一組反轉單鏈表

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive inte

原创 Servlet深入學習(一)——生命週期、service方法、ServletConfig、ServletContext、request、response對象

Servlet生命週期 服務器啓動時(web.xml中配置load-on-startup=1,默認爲0)或者第一次請求該servlet時,就會初始化一個Servlet對象,也就是會執行初始化方法init(ServletConfig con

原创 給自己立個flag:沒事就讀源代碼

給自己立個flag: 沒事就讀源代碼   閱讀Java源碼的前提條件: 1、技術基礎 在閱讀源碼之前,我們要有一定程度的技術基礎的支持。 假如你從來都沒有學過Java,也沒有其它編程語言的基礎,上來就啃《Core Java》,那樣是很難有

原创 leetcode刷題(225)——用隊列實現棧

Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the

原创 leetcode刷題(844)——回退字符串比較

Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace c

原创 leetcode刷題(232)——用棧實現隊列

Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- R

原创 leetcode刷題(20)——判斷括號的有效性

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

原创 leetcode刷題(141)——判斷單鏈表是否有環

Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integ

原创 leetcode刷題(92)——指定範圍反轉單鏈表

Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: Input: 1->2

原创 在Intellij IDEA中使用Debug

  目錄 一、Debug開篇 二、基本用法&快捷鍵 三、變量查看 四、計算表達式 五、智能步入 六、斷點條件設置 七、多線程調試 八、回退斷點 九、中斷Debug 十、附:JRebel激活 Debug用來追蹤代碼的運行流程,通常在程序運行

原创 leetcode刷題(206)——反轉單鏈表

Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked li

原创 IDEA如何搭建Maven——安裝、下載、配置(圖文)

原文地址https://www.cnblogs.com/xihehua/p/9639045.html 1.下載 maven 壓縮包 輸入網址 www.apache.org   會看到以下界面 住下劃看到以下界面 然後看到這個界面  

原创 三層架構、MVC以及與SSM架構的對應關係

三層架構 三層架構是指:視圖層view,服務層service,持久層Dao,通常也叫(表示層UI,業務邏輯層BLL,數據訪問層DAL)它們的功能是: 1.view層:  用於顯示數據和接收用戶輸入的數據,爲用戶提供一種交互式操作的界面2.