2020年11月29日

236. Lowest Common Ancestor of a Binary Tree

摘要: Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes 阅读全文

posted @ 2020-11-29 17:39 wsw_seu 阅读(62) 评论(0) 推荐(0) 编辑

237. Delete Node in a Linked List

摘要: Write a function to delete a node in a singly-linked list. You will not be given access to the head of the list, instead you will be given access to t 阅读全文

posted @ 2020-11-29 16:43 wsw_seu 阅读(52) 评论(0) 推荐(0) 编辑

238. Product of Array Except Self

摘要: Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except n 阅读全文

posted @ 2020-11-29 16:25 wsw_seu 阅读(39) 评论(0) 推荐(0) 编辑

导航