# Question

`Input: head = [3,2,0,-4], pos = 1Output: trueExplanation: There is a cycle…`

# Question

`Input: s = "A man, a plan, a canal: Panama"Output: trueExplanation: "amanaplanacanalpanama" is a palindrome.`
`Input: s = "race a car"Output: falseExplanation: "raceacar" is not a palindrome.`

# Question

`Input: prices = [7,1,5,3,6,4]Output: 5Explanation: Buy on day 2 (price = 1) and sell on day 5 (price = 6), profit = 6-1 = 5. …`

# Question

`Input: rowIndex = 3Output: [1,3,3,1]`
`Input: rowIndex = 0Output: [1]`
`Input: rowIndex = 1Output: [1,1]`

# Question

`Input: numRows = 5Output: [[1],[1,1],[1,2,1],[1,3,3,1],[1,4,6,4,1]]`
`Input: numRows = 1Output: [[1]]`

# LeetCode Algorithm Challenges: Single Number

`Input: nums = [2,2,1]Output: 1`
`Input: nums = [4,1,2,1,2]Output: 4`
`Input: nums = [1]Output: 1`

# Question

`Input: nums = [-10,-3,0,5,9]Output: [0,-3,9,-10,null,5]Explanation: [0,-10,5,null,-3,null,9] is also accepted:`

# Question

`Input: root = [3,9,20,null,null,15,7]Output: true`

# Question

`Input: root = [5,4,8,11,null,13,4,7,2,null,null,null,1], targetSum = 22Output: true`

# Question 1

`Input: root = [3,9,20,null,null,15,7]Output: 3`

# Solution

## Nick Solonyy

Full-stack software engineer with an international MBA. Project Management and Team Collaboration experience. React | Javascript | Redux | Rails

Get the Medium app