829. Consecutive Numbers Sum 829. Consecutive Numbers Sum 題目給定一個 n ,要求要找出總共存在著幾組連續整數,其總和為 n ,這一題是困難等級的題目,
426. Convert Binary Search Tree to Sorted Doubly Linked List 426. Convert Binary Search Tree to Sorted Doubly Linked List
323. Number of Connected Components in an Undirected Graph 可以繼承 547. Number of Provinces 的做法,先轉換給定的 edges 成一個矩陣。 class
8. String to Integer atoi 8. String to Integer (atoi) 這一個題目主要考察的並不是演算法與資料結構,考察的點在於是否可以冷靜地處理邊角案例,在面試中,給出的例子可能並不多,要看看在面試的人是否有辦法清楚的了解題目在幹嘛。