摘要: javascript: 合并多层级数组:https://blog.csdn.net/Xiao_Spring/article/details/79262917 阅读全文
posted @ 2021-03-09 05:21 Schwifty 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 位运算: https://www.cnblogs.com/liaopeng/p/8436155.html 0>>1 = 0 (0<<1) + 1 = 1 0<<1 = 0 (0>>1) + 1 = 1 1&1 = 1, 0&1 = 0; Hashmap basic methods: https:// 阅读全文
posted @ 2019-03-14 01:28 Schwifty 阅读(242) 评论(0) 推荐(0) 编辑
摘要: You are given an array of strings equations that represent relationships between variables where each string equations[i] is of length 4 and takes one 阅读全文
posted @ 2022-09-29 09:35 Schwifty 阅读(21) 评论(0) 推荐(0) 编辑
摘要: An integer array original is transformed into a doubled array changed by appending twice the value of every element in original, and then randomly shu 阅读全文
posted @ 2022-09-18 10:03 Schwifty 阅读(22) 评论(0) 推荐(0) 编辑
摘要: You are given two integer arrays nums and multipliers of size n and m respectively, where n >= m. The arrays are 1-indexed. You begin with a score of  阅读全文
posted @ 2022-09-16 11:56 Schwifty 阅读(28) 评论(0) 推荐(0) 编辑
摘要: You are playing a game that contains multiple characters, and each of the characters has two main properties: attack and defense. You are given a 2D i 阅读全文
posted @ 2022-09-09 11:51 Schwifty 阅读(19) 评论(0) 推荐(0) 编辑
摘要: You are given an integer n. We reorder the digits in any order (including the original order) such that the leading digit is not zero. Return true if 阅读全文
posted @ 2022-08-26 10:21 Schwifty 阅读(16) 评论(0) 推荐(0) 编辑
摘要: Given an integer array sorted in ascending order, write a function to searchtargetinnums. Iftargetexists, then return its index, otherwise return-1.Ho 阅读全文
posted @ 2022-08-22 10:59 Schwifty 阅读(11) 评论(0) 推荐(0) 编辑
摘要: You are given two strings stamp and target. Initially, there is a string s of length target.length with all s[i] == '?'. In one turn, you can place st 阅读全文
posted @ 2022-08-22 07:15 Schwifty 阅读(26) 评论(0) 推荐(0) 编辑
摘要: A car travels from a starting position to a destination which is target miles east of the starting position. There are gas stations along the way. The 阅读全文
posted @ 2022-08-20 13:04 Schwifty 阅读(16) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array nums that is sorted in non-decreasing order. Determine if it is possible to split nums into one or more subsequences su 阅读全文
posted @ 2022-08-19 13:06 Schwifty 阅读(19) 评论(0) 推荐(0) 编辑
摘要: International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: 'a' maps to ".-", 'b' map 阅读全文
posted @ 2022-08-17 12:31 Schwifty 阅读(21) 评论(0) 推荐(0) 编辑