原创 LeetCode Algorithms 241. Different Ways to Add Parentheses

題目難度: Medium 原題描述: Given a string of numbers and operators, return all possible results from computing all the differ

原创 LeetCode Algorithms 3. Longest Substring Without Repeating Characters

題目難度: Medium 原題描述: Given a string, find the length of the longest substring without repeating characters. Examples: G

原创 LeetCode Algorithms 98. Validate Binary Search Tree

題目難度: Medium 原題描述: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined

原创 LeetCode Algorithms 19. Remove Nth Node From End of List

題目難度: Medium 原題描述: Given a linked list, remove the nth node from the end of list and return its head. For example,

原创 LeetCode Algorithms 2. Add Two Numbers

題目難度: Medium 原題描述: You are given two non-empty linked lists representing two non-negative integers. The digits are sto

原创 LeetCode Algorithms 1. Two Sum

題目難度: Easy 原題描述: Given an array of integers, return indices of the two numbers such that they add up to a specific tar

原创 LeetCode Algorithms 11. Container With Most Water

題目難度: Medium 原題描述: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai).

原创 Java對象創建的過程

       當Java虛擬機遇到一條new指令時,首先將去檢查這個指令的參數是否能在常量池中定位到一個類的符號引用。如果有符號引用,將檢查這個符號引用代表的類是否已經被加載、解析和初始化過;如果沒有,那必須先加載相應的類。      

原创 LeetCode Algorithms 105. Construct Binary Tree from Preorder and Inorder Traversal

題目難度: Medium 原題描述: Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume

原创 LeetCode Algorithms 32. Longest Valid Parentheses

題目難度: Hard 原題描述: Given a string containing just the characters '(' and ')', find the length of the longest valid (wel

原创 LeetCode Algorithms 34. Search for a Range

題目難度: Medium 原題描述: Given an array of integers sorted in ascending order, find the starting and ending position of a g

原创 緩衝區溢出

1 什麼是緩衝區       計算機程序一般都會使用到一些內存,這些內存或是程序內部使用,或是存放用戶的輸入數據,這樣的內存一般稱作緩衝區。 2 什麼是緩衝區溢出       向緩衝區內填充數據時超過了緩衝區本身的容量,而導致數據溢出到

原创 進程通信

進程通信是指進程之間進行信息交換(數據傳輸) 進程通信的分類 1.低級通信      (1)使用信號量實現進程間的互斥和同步。 2.高級通信      (1)共享存儲器系統           互相通信的進程通過共享某些數據結構或共享

原创 LeetCode Algorithms 210. Course Schedule II

題目難度: Medium 原題描述: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may ha

原创 LeetCode Algorithms 113. Path Sum II

題目難度: Medium 原題描述: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given