選課時間(題目已修改,注意讀題) Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/3
Sort a linked list using insertion sort. 插入排序:每步將一個待排序的紀錄,按其關鍵碼值的大小插入前面已經
Given a binary tree, determine if it is height-balanced. For this proble
Say you have an array for which the ith element isthe price of a given stock on
長篇閱讀。。。 題目描述: 一個電網包含一些結點(電站、消費者、調度站),這些結點通過電線連接。每個結點u 可能 被供給s(u)的電能,s(u)&
區間DP: 將一個多邊形三角剖分,讓可以得到的最大三角形的面積最小 dp[i][j]表示從i點到j點的最優值,枚舉中間點k dp[i][j
A peak element is an element that is greater than its neighbors.Given an input a
Given a string s consists of upper/lower-case alphabets and empty space chara
The count-and-say sequence is the sequence of integers beginning as follows: