蓉城小晋
蓉城小晋
全部文章
分类
题解(50)
归档
标签
去牛客网
登录
/
注册
蓉城小晋的博客
记录转码人员用js艰难实现算法,尽量清晰易读
全部文章
(共50篇)
题解 | #二叉树中和为某一值的路径(一)#
```/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * * @param root TreeNode类 * @p...
Javascript Node
2021-11-13
0
479
题解 | #对称的二叉树#
```/* function TreeNode(x) { this.val = x; this.left = null; this.right = null; } */ function isSymmetrical(pRoot) { // write code her...
Javascript Node
2021-11-13
0
455
题解 | #判断是不是平衡二叉树#
```/* function TreeNode(x) { this.val = x; this.left = null; this.right = null; } */ function IsBalanced_Solution(pRoot) { // write co...
Javascript Node
2021-11-13
0
384
题解 | #从上往下打印二叉树#
```/* function TreeNode(x) { this.val = x; this.left = null; this.right = null; } */ function TreeDepth(pRoot) { // write code here ...
Javascript Node
2021-11-13
0
411
题解 | #从上往下打印二叉树#
```/* function TreeNode(x) { this.val = x; this.left = null; this.right = null; } */ let resArr = [] function PrintFromTopToBottom(root) {...
Javascript Node
2021-11-13
4
444
题解 | #二叉树的镜像#
```/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可...
Javascript Node
2021-11-12
0
329
题解 | #复杂链表的复制#
```function RandomListNode(x){ this.label = x; this.next = null; this.random = null; } function Clone(pHead) { // write code here ...
Javascript Node
2021-11-12
0
414
web浏览器面试题(一)
```function RandomListNode(x){ this.label = x; this.next = null; this.random = null; } function Clone(pHead) { // write code h...
Javascript Node
2021-11-12
0
364
题解 | #删除链表中重复的结点#
```/*function ListNode(x){ this.val = x; this.next = null; }*/ function deleteDuplication(pHead) { // write code here if(pHead===null|...
Javascript Node
2021-11-10
0
448
题解 | #链表中倒数最后k个结点#
```/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pHead L...
Javascript Node
2021-11-08
0
402
首页
上一页
1
2
3
4
5
下一页
末页