摘要: /* function TreeNode(x) { this.val = x; this.left = null; this.right = null; } */ function IsBalanced_Solution(pRoot) { // write code here function ge 阅读全文
posted @ 2022-03-27 22:06 方头小小狮 阅读(25) 评论(0) 推荐(0)
摘要: /* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pR 阅读全文
posted @ 2022-03-27 22:05 方头小小狮 阅读(50) 评论(0) 推荐(0)
摘要: /* function TreeNode(x) { this.val = x; this.left = null; this.right = null; } */ function isSymmetrical(pRoot) { // write code here function compareN 阅读全文
posted @ 2022-03-27 22:04 方头小小狮 阅读(17) 评论(0) 推荐(0)
摘要: /* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * * @param root TreeNode类 * @return int整型 */ function 阅读全文
posted @ 2022-03-27 22:03 方头小小狮 阅读(34) 评论(0) 推荐(0)
摘要: /* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param ro 阅读全文
posted @ 2022-03-27 22:02 方头小小狮 阅读(15) 评论(0) 推荐(0)
摘要: /* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * * @param root TreeNode类 * @return int整型二维数组 */ funct 阅读全文
posted @ 2022-03-27 22:02 方头小小狮 阅读(23) 评论(0) 推荐(0)
摘要: /* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param ro 阅读全文
posted @ 2022-03-27 22:01 方头小小狮 阅读(19) 评论(0) 推荐(0)
摘要: /* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param ro 阅读全文
posted @ 2022-03-27 22:00 方头小小狮 阅读(29) 评论(0) 推荐(0)
摘要: /* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head ListNode类 * @return ListNode类 */ function deleteDuplicates( 阅读全文
posted @ 2022-03-27 21:58 方头小小狮 阅读(34) 评论(0) 推荐(0)
摘要: /* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head ListNode类 the head * @return bool布尔型 */ function isPail( hea 阅读全文
posted @ 2022-03-27 21:57 方头小小狮 阅读(40) 评论(0) 推荐(0)
摘要: /* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head ListNode类 the head node * @return ListNode类 */ function sort 阅读全文
posted @ 2022-03-27 21:54 方头小小狮 阅读(39) 评论(0) 推荐(0)
摘要: function ListNode(x){ this.val = x; this.next = null; } function FindFirstCommonNode(pHead1, pHead2) { let p1 = pHead1 let p2 = pHead2 //p1长度遍历 let k1 阅读全文
posted @ 2022-03-27 21:53 方头小小狮 阅读(40) 评论(0) 推荐(0)
摘要: /* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pHead ListNode类 * @param 阅读全文
posted @ 2022-03-27 21:51 方头小小狮 阅读(50) 评论(0) 推荐(0)
摘要: function ListNode(x){ this.val = x; this.next = null; } function Merge(pHead1, pHead2) { // write code here let cur = new ListNode() let dummy = cur w 阅读全文
posted @ 2022-03-27 21:49 方头小小狮 阅读(38) 评论(0) 推荐(0)
摘要: /*function ListNode(x){ this.val = x; this.next = null; }*/ function ReverseList(pHead) { // write code here if(!pHead) return pHead if(pHead!== null 阅读全文
posted @ 2022-03-27 21:41 方头小小狮 阅读(31) 评论(0) 推荐(0)