摘要: Binary Tree Tilt Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between 阅读全文
posted @ 2023-01-04 19:20 iyiluo 阅读(22) 评论(0) 推荐(0)
摘要: Intersection of Two Arrays Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be unique 阅读全文
posted @ 2023-01-04 19:20 iyiluo 阅读(24) 评论(0) 推荐(0)
摘要: Intersection of Two Arrays II Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear 阅读全文
posted @ 2023-01-04 19:19 iyiluo 阅读(19) 评论(0) 推荐(0)
摘要: Valid Perfect Square Given a positive integer num, return true if num is a perfect square or false otherwise. A perfect square is an integer that is t 阅读全文
posted @ 2023-01-04 19:19 iyiluo 阅读(21) 评论(0) 推荐(0)
摘要: First Unique Character in a String Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return - 阅读全文
posted @ 2023-01-04 19:19 iyiluo 阅读(16) 评论(0) 推荐(0)
摘要: Third Maximum Number Given an integer array nums, return the third distinct maximum number in this array. If the third maximum does not exist, return 阅读全文
posted @ 2023-01-04 19:18 iyiluo 阅读(22) 评论(0) 推荐(0)