先說一個實際的場景,比如一個購物的App。用戶進來先去浏覽商品,選好了。打算付款,這個時候停留在Activity1.java。這個時候提示沒有登錄,就會跳轉到登
Problem Description The country of jiuye composed by N cites. Each city can be
Problem Description As we know,the fzu AekdyCoin is famous of math,especially i
題目: A message containing letters from A-Z is being encoded to numbers using the
Compare two version numbers version1 and version1. version2 return 1, if versi
Given a positive integer, return its corresponding column title as appear in a
【題目】 Given n, how many structurally unique BSTs (binary search trees) that sto
題意: 在while(x=a;x!=b;x+=c) statement;中,問statement會被執行多少次,計算在2^k下進行。 思路: 等價於計算
Given an array of size n, find the majority element. The majority element is t
Merge k sorted linked lists and return it as one sorted list. Analyze and descri
題目大意:給出平面上n個點,求最小圓覆蓋。 思路:圓覆蓋問題只與所有點中凸包上的點有關,因此先求一下凸包,然後數據范圍驟減。大概是只剩下logn左右個點。這