Category Challenges

Interesting polygon challenge

Interesting Polygon

The Interesting polygon challenge   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 polygon is obtained by…

Zigzag challenge

Zigzag

The Zigzag challenge Given an array of integers numbers, your task is to check all the triples of its consecutive elements for being a zigzag. More formally, your task is to construct an array of length numbers.length – 2, where…

Palindrome challenge

Palindrome

The Palindrome challenge The palindrome challenge is one of the most popular coding challenges in different coding exams at most software companies, especially at the big tech companies like Google, Microsoft, Facebook, Amazon, and more. What is a palindrome? The word/number…