Skip to content

Latest commit

 

History

History
70 lines (67 loc) · 3.54 KB

File metadata and controls

70 lines (67 loc) · 3.54 KB

Working Solutions for CodeSignal

The folder includes solutions to puzzles and quizzes from the website CodeSignal. https://codesignal.com

NOTE : Codesignal has changed the format of its challenges, hence you will not be able to find these challenges in the current platform.

  • 🟢 : Step-by-step explanation of the solution has been provided, including the description of the exercise.
  • 🔴 : Step-by-step explanation of the solution has not been provided including the description of the exercise.

ARCADE - INTRO

  1. 🟢 Add.py - Add two numbers.
  2. 🟢 centuryFromYear.py - Given a year, return the century it is in.
  3. 🟢 checkPalindrome.py - Given the string, check if it is a palindrome.
  4. 🟢 adjacentElementsProduct.py - Given an array of integers, find the pair of adjacent elements that has the largest product and return that product.
  5. 🟢 shapeArea.py - An n-interesting polygon has been defined. Your task is to find the area of a polygon for a given n.
  6. 🟢 makeArrayConsecutive2.py - Arrange an array of statues, from smallest to largest, finding any additional statues that are missing to have a difference of 1 from the previous.
  7. 🟢 almostIncreasingSequence.py - Given a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence by removing no more than one element from the array.
  8. 🟢 matrixElementsSum - Return total sum of matrix elements for rectangular matrix of integers.
  9. 🟢 allLongestStrings.py - Given an array of strings, return another array containing all of its longest strings.
  10. 🟢 commonCharacterCount.py - Given two strings, find the number of common characters between them.
  11. 🟢 isLucky.py - Given a ticket number n, determine if it's lucky or not.
  12. 🟢 sortByHeight.py - Your task is to rearrange the people by their heights in a non-descending order
  13. 🟢 reverseInParentheses.py - Write a function that reverses characters in (possibly nested) parentheses in the input string.
  14. 🟢 alternatingSums.py - Return an array of two integers, the weight totals of Team 1 & Team 2.
  15. 🔴 addBorder.py
  16. 🔴 areSimilar.py
  17. 🔴 arrayChange.py
  18. 🔴 palindromeRearranging.py
  19. 🔴 areEquallyStrong.py
  20. 🔴 arrayMaximalAdjacentDifference.py
  21. 🔴 isIPv4Address.py
  22. 🔴 avoidObstacles.py
  23. 🔴 boxBlur.py
  24. 🔴 minesweeper.py
  25. 🔴 arrayReplace.py
  26. 🔴 evenDigitsOnly.py
  27. 🔴 variableName.py
  28. 🔴 alphabeticShift.py
  29. 🔴 chessBoardCellColor.py
  30. 🔴 circleOfNumbers.py
  31. 🔴 depositProfit.py
  32. 🔴 absoluteValuesSumMinimization.py
  33. 🔴 stringsRearrangement.py
  34. 🔴 extractEachKth.py
  35. 🔴 firstDigit.py
  36. 🔴 differentSymbolsNaive.py
  37. 🔴 arrayMaxConsecutiveSum.py
  38. 🔴 growingPlant.py
  39. 🔴 knapsackLight.py
  40. 🔴 longestDigitsPrefix.py
  41. 🔴 digitDegree.py
  42. 🔴 bishopAndPawn.py
  43. 🔴 isBeautifulString.py
  44. 🔴 findEmailDomain.py
  45. 🔴 buildPalindrome.py
  46. 🔴 electionWinners.py
  47. 🔴 isMAC48Address.py
  48. 🔴 isDigit.py
  49. 🔴 lineEncoding.py
  50. 🔴 chessKnight.py
  51. 🔴 deleteDigit.py
  52. 🔴 longestWord.py
  53. 🔴 validTime.py
  54. 🔴 sumUpNumbers.py
  55. 🔴 differentSquares.py
  56. 🔴 digitsProduct.py
  57. 🔴 fileNaming.py
  58. 🔴 messageFromBinaryCode.py
  59. 🔴 spiralNumbers.py
  60. 🔴 Sudoku.py