原创 Java網絡編程
OSI 參考模型 物理層 這一層爲上一層提供物理連接,數據作爲原始的bit流傳輸 數據鏈路層 負責兩個相鄰節點的線路,無差錯地傳送以針爲單位的數據。每一針包括一定的數據和必要的控制信息。典型switch交換機 網絡層 選擇合適的網
原创 Tree
樹節點 Inserting an element into a tree Deleting an element from a tree searching for an element Traversing the tree f
原创 The Ordered List Abstract Data Type
The structure of an ordered list is a collection of items where each item holds a relative position that is based upon
原创 Heap 練習題
Basic find-max or find-min: find the maximum item of a max-heap or a minimum item of a min-heap (a.k.a. peek) insert:
原创 Java Collection
Java ArrayList class Java ArrayList class uses a dynamic array for storing the elements. It extends AbstractList class
原创 linkedlist
鏈表問題包含: 刪除節點, 插入排序, 旋轉 Remove Linked List Elements # Definition for singly-linked list. # class ListNode: # def __
原创 Java Socket Programming
Java Socket programming is used for communication between the applications running on different JRE. Java Socket progra
原创 文章標題
Java Networking Java Networking is a concept of connecting two or more computing devices together so that we can share
原创 翻轉
Reverse String Given s = “hello”, return “olleh public class Solution { public String reverseString(String s) {
原创 RMI
The RMI (Remote Method Invocation) is an API that provides a mechanism to create distributed application in java. The R
原创 4.1 Maximum and Minimum Value
3.10 Linear approximations and differentials L(x)=fa+f’a(x-a) 已知函數上的一個點,求,通過他的直線方程 例題: 已知函數方程,A點的X 值,求Lx 1. 帶入a, 得到f
原创 節點操作總結
Stack 添加元素 def push( self, newValue ): self.top = LinkedNode( newValue, self.top ) 隊列添加元素 def enqueue( self, n
原创 文章標題
Socket class A socket is simply an endpoint for communications between the machines. The Socket class can be used to cr
原创 Heap
考試總結 要明白數據結構如何建立的 還要明白他們是如何使用的 https://www.youtube.com/watch?v=fJORlbOGm9Y https://www.youtube.com/watch?v=LhhRbRXhB4