![240](https://upload.jianshu.io/users/upload_avatars/11808536/7cc213eb-7360-42d0-b623-2d7b5bd16158.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
IP屬地:河北
HashSetJAVA Python
JAVA python
JAVA(快慢指針) python
JAVA python
棧 遞歸 迭代
我的思路為中序遍歷和逆中序遍歷的結(jié)果是相同的同蜻。這種思路是錯(cuò)的储耐,原因在于[1,2,2,2,null,2]這種情況下回出現(xiàn)錯(cuò)誤困介。 隨后看了官方解答,...
剛開始的思路修肠,先遍歷求和,在通過先序遍歷一個(gè)個(gè)求解,但是因?yàn)闊o(wú)法記錄和的值谈截,只能告吹。 錯(cuò)誤解法(記錄下來(lái)是因?yàn)槭煜fs,以及python中沒...
題目鏈接 題目描述 Given a binary tree, return the inorder traversal of its nodes...
題目地址 題目描述: You are given two non-empty linked lists representing two non...