![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Code Signal
文章平均质量分 80
GoldenaArcher
Done is better than perfect
展开
-
Code Signal 目录
Code Signal 目录有些真的挺简单的我就跳过了,所有做过的题目都放在 Githup rpo 上了:js_coding_signal,有讲解的这里会慢一些。introEdge of the Ocean ????shapeAreaalmostIncreasingSequencematrixElementsSumSmooth Sailing ⛵All Longest StringscommonCharacterCountisLuckySort By Heightreverse原创 2021-09-07 15:41:07 · 322 阅读 · 0 评论 -
[JavaScript 刷题] Code Signal - 重置回文(palindromeRearranging)
[JavaScript 刷题] Code Signal - 重置回文(palindromeRearranging)题目地址:palindromeRearranging题目如下:Given a string, find out if its characters can be rearranged to form a palindrome.Example:For inputString = "aabb", the output should be palindromeRearranging(inp原创 2021-09-10 06:40:46 · 296 阅读 · 0 评论 -
[JavaScript 刷题] Code Signal - 改变数组(arrayChange)
[JavaScript 刷题] Code Signal - 改变数组(arrayChange)题目地址:arrayChange题目如下:You are given an array of integers. On each move you are allowed to increase exactly one of its element by one. Find the minimal number of moves required to obtain a strictly increasin原创 2021-09-09 12:19:52 · 204 阅读 · 0 评论 -
[JavaScript 刷题] Code Signal - 相似数组(Are Similar?)
[JavaScript 刷题] Code Signal - 相似数组(Are Similar?)题目地址:Are Similar?题目如下:Two arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays.Given two arrays a and b, check whether they are simi原创 2021-09-08 19:33:49 · 321 阅读 · 0 评论 -
[JavaScript 刷题] Code Signal - 翻转括号内字符(reverseInParentheses)
[JavaScript 刷题] Code Signal - 翻转括号内字符(reverseInParentheses)题目地址:reverseInParentheses题目如下:Write a function that reverses characters in (possibly nested) parentheses in the input string.Input strings will always be well-formed with matching ()s.Example原创 2021-09-07 12:31:49 · 394 阅读 · 1 评论 -
[JavaScript 刷题] Code Signal - 按身高排序(Sort by Height)
[JavaScript 刷题] Code Signal - 按身高排序(Sort by Height)题目地址:Sort by Height题目如下:Some people are standing in a row in a park. There are trees between them which cannot be moved. Your task is to rearrange the people by their heights in a non-descending order原创 2021-09-07 10:28:22 · 662 阅读 · 0 评论 -
[JavaScript 刷题] Code Signal - 幸运数(is lucky)
[JavaScript 刷题] Code Signal - 幸运数(is lucky)题目地址:isLucky题目如下:Ticket numbers usually consist of an even number of digits. A ticket number is considered lucky if the sum of the first half of the digits is equal to the sum of the second half.Given a ticke原创 2021-09-06 08:34:35 · 566 阅读 · 4 评论 -
[JavaScript 刷题] Code Signal - 共用字符数(commonCharacterCount)
[JavaScript 刷题] Code Signal - 所有最长字符串(all longest strings)题目地址:commonCharacterCount题目如下:Given two strings, find the number of common characters between them.Example:For s1 = "aabcc" and s2 = "adcaa", the output should becommonCharacterCount(s1, s2)原创 2021-09-06 05:06:13 · 539 阅读 · 3 评论 -
[JavaScript 刷题] Code Signal - 所有最长字符串(all longest strings)
[JavaScript 刷题] Code Signal - 所有最长字符串(all longest strings)题目地址:All Longest Strings题目如下:Given an array of strings, return another array containing all of its longest strings.Example:For inputArray = ["aba", "aa", "ad", "vcd", "aba"], the output should原创 2021-09-05 14:20:55 · 518 阅读 · 1 评论 -
[JavaScript 刷题] Code Signal - 形状面积(shapeArea)
[JavaScript 刷题] Code Signal - 形状面积(shapeArea)题目地址:shapeArea题目如下:Below we will define an n-interesting polygon. Your task is to find the area of a polygon for a given n.A 1-interesting polygon is just a square with a side of length 1. An n-interesting原创 2021-09-05 13:45:45 · 862 阅读 · 1 评论 -
[JavaScript 刷题] Code Signal - 矩阵元素之和(matrixElementsSum)
[JavaScript 刷题] Code Signal - 矩阵元素之和(matrixElementsSum)这是一个关于矩阵的题,也不是特变难,主要还是需要注意题目说的是什么意思。题目地址:Matrix Elements Sum题目After becoming famous, the CodeBots decided to move into a new building together. Each of the rooms has a different cost, and some of t原创 2021-09-05 12:30:57 · 560 阅读 · 0 评论 -
[JavaScript 刷题] Code Signal - 近乎增长序列(almostIncreasingSequence)
近乎增长序列最近接到了一个公司的 OA,让在一个叫 Code Signal 的网站上做。鉴于中间有两周的时间可以准备,加上我确实也很久没有刷题了,所以就先打算在 Code Signal 注册个账号,做点题目,找找感觉。Code Signal 这个平台感觉和 Leetcode 有点像,都是以解题为主,不过应该是和一些小型公司有合作关系,会推出 OA 这个功能。Almost Incresing Sequence 就是碰到的一道不算特别难,但是确实花了一些时间去解决的题目。题目地址:almostIncre原创 2021-09-05 09:28:05 · 676 阅读 · 0 评论