摘要:
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-03-10 15:42
CNoodle
阅读(259)
评论(0)
推荐(0)
摘要:
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia 阅读全文
posted @ 2020-03-10 14:36
CNoodle
阅读(169)
评论(0)
推荐(0)
摘要:
You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You ca 阅读全文
posted @ 2020-03-10 13:45
CNoodle
阅读(380)
评论(0)
推荐(0)
摘要:
The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value, and the median is the mean of th 阅读全文
posted @ 2020-03-10 07:06
CNoodle
阅读(358)
评论(0)
推荐(0)
摘要:
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or 阅读全文
posted @ 2020-03-10 04:39
CNoodle
阅读(249)
评论(0)
推荐(0)
摘要:
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or 阅读全文
posted @ 2020-03-10 03:54
CNoodle
阅读(249)
评论(0)
推荐(0)