xinyu04

导航

2022年8月16日 #

LeetCode 384 Shuffle an Array

摘要: Given an integer array nums, design an algorithm to randomly shuffle the array. All permutations of the array should be equally likely as a result of 阅读全文

posted @ 2022-08-16 21:27 Blackzxy 阅读(13) 评论(0) 推荐(0) 编辑

MathProblem 35 Light bulb problem #1

摘要: You have ten light bulbs. Five have an average life of 100 hours, and the other five have a average life of 200 hours. These light bulbs have a memory 阅读全文

posted @ 2022-08-16 06:19 Blackzxy 阅读(29) 评论(0) 推荐(0) 编辑

LeetCode 131 Palindrome Partitioning

摘要: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. A palindro 阅读全文

posted @ 2022-08-16 03:15 Blackzxy 阅读(7) 评论(0) 推荐(0) 编辑

LeetCode 169 Majority Element

摘要: Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume t 阅读全文

posted @ 2022-08-16 02:07 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑