PinnedPublished inData Science & LeetCode for Kindergarten2021 每天必聽Podcasts推薦! (持續更新分享每天都會聽的七個Podcasts!!Apr 22, 20201Apr 22, 20201
Published inData Science & LeetCode for Kindergarten251. Flatten 2D VectorDesign an iterator to flatten a 2D vector. It should support the next and hasNext operations.May 31, 2023May 31, 2023
Published inData Science & LeetCode for Kindergarten324. Wiggle Sort IIGiven an integer array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]....May 30, 2023May 30, 2023
Published inData Science & LeetCode for Kindergarten384. Shuffle an ArrayGiven an integer array nums, design an algorithm to randomly shuffle the array. All permutations of the array should be equally likely as a…May 30, 2023May 30, 2023
Published inData Science & LeetCode for Kindergarten166. Fraction to Recurring DecimalGiven two integers representing the numerator and denominator of a fraction, return the fraction in string format.May 30, 2023May 30, 2023
Published inData Science & LeetCode for Kindergarten378. Kth Smallest Element in a Sorted MatrixGiven an n x n matrix where each of the rows and columns is sorted in ascending order, return the kth smallest element in the matrix.May 30, 2023May 30, 2023
Published inData Science & LeetCode for Kindergarten277. Find the CelebritySuppose you are at a party with n people labeled from 0 to n - 1 and among them, there may exist one celebrity. The definition of a…May 30, 2023May 30, 2023
Published inData Science & LeetCode for Kindergarten116. Populating Next Right Pointers in Each NodeYou are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the…May 30, 2023May 30, 2023
Published inData Science & LeetCode for Kindergarten285. Inorder Successor in BSTGiven the root of a binary search tree and a node p in it, return the in-order successor of that node in the BST. If the given node has no…May 30, 2023May 30, 2023
Published inData Science & LeetCode for Kindergarten454. 4Sum IIGiven four integer arrays nums1, nums2, nums3, and nums4 all of length n, return the number of tuples (i, j, k, l) such that:May 30, 2023May 30, 2023