上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页
摘要: Reformat The String You are given an alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You 阅读全文
posted @ 2022-11-04 19:05 iyiluo 阅读(16) 评论(0) 推荐(0)
摘要: 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 阅读(18) 评论(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 阅读(15) 评论(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 阅读(18) 评论(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 阅读(31) 评论(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 阅读(16) 评论(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 阅读(7) 评论(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 阅读(18) 评论(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 阅读(17) 评论(0) 推荐(0)
摘要: Remove Letter To Equalize Frequency You are given a 0-indexed string word, consisting of lowercase English letters. You need to select one index and r 阅读全文
posted @ 2022-11-01 22:10 iyiluo 阅读(27) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页