题目描述 Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 题目解析 罗马数…
[leetcode]Same Tree
题目描述 Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if…
[leetcode]populating next right pointers in each node
题目描述 题目描述 Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Popul…
[Leetcode]copy list with random pointer
题目描述 A linked list is given such that each node contains an additional random pointer which could point to any node in t…
leetcode之single-number-ii、Gas station、word break
single-number-ii Given an array of integers, every element appears three times except for one. Find that single one. Not…
腾讯应用开发岗一轮面试面经
面试的部门是:云与智慧产业事业群(CSIG,即Cloud and Smart Industries Group)。我也不知道凉没凉, 总的来说, 确实有一些部分回答的不是很好,特别是自己存在以下问题: 1.对于没用到但了解的方面,没有深入去…
《剑指Offer》题目解析(12)
题目1 序列化二叉树 题目描述 请实现两个函数,分别用来序列化和反序列化二叉树 题目解析 序列化二叉树可以使用前序遍历来进行,这样的话响应的反序列化在根节点的数值读出来的时候就可以开始了。如果二叉树读的时候遇到NULL,就输出一个“\$ ”…