摘要:
Detect Pattern of length M Repeated K or More Times Given an array of positive integers arr, find a pattern of length m that is repeated k or more tim 阅读全文
posted @ 2022-11-03 18:34
iyiluo
阅读(20)
评论(0)
推荐(0)
摘要:
Maximum Repeating Substring For a string sequence, a string word is k-repeating if word concatenated k times is a substring of sequence. The word's ma 阅读全文
posted @ 2022-11-03 18:34
iyiluo
阅读(16)
评论(0)
推荐(0)
摘要:
Find Winner on a Tic Tac Toe Game Tic-tac-toe is played by two players A and B on a 3 x 3 grid. The rules of Tic-Tac-Toe are: Players take turns placi 阅读全文
posted @ 2022-11-03 18:33
iyiluo
阅读(22)
评论(0)
推荐(0)
摘要:
1-bit and 2-bit Characters We have two special characters: The first character can be represented by one bit 0. The second character can be represente 阅读全文
posted @ 2022-11-03 18:33
iyiluo
阅读(32)
评论(0)
推荐(0)
摘要:
Binary Watch A binary watch has 4 LEDs on the top to represent the hours (0-11), and 6 LEDs on the bottom to represent the minutes (0-59). Each LED re 阅读全文
posted @ 2022-11-03 18:33
iyiluo
阅读(19)
评论(0)
推荐(0)
摘要:
Rank Transform of an Array Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank 阅读全文
posted @ 2022-11-03 18:32
iyiluo
阅读(8)
评论(0)
推荐(0)
摘要:
Check if Word Equals Summation of Two Words The letter value of a letter is its position in the alphabet starting from 0 (i.e. 'a' -> 0, 'b' -> 1, 'c' 阅读全文
posted @ 2022-11-03 08:08
iyiluo
阅读(20)
评论(0)
推荐(0)
摘要:
Reshape the Matrix In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one with a different size r x c ke 阅读全文
posted @ 2022-11-03 07:53
iyiluo
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号