The Sequence Of Power Medium

+100 PTS

Before you start the test, check out our tutorial challenge

  • TYPE CODE PRACTICE CHALLENGE
  • LANGUAGES BASH, C, C++, C# AND 21 MORE
    LANGUAGES BASH, C, C++, C#, CLOJURE, ELIXIR, ERLANG, GO, GROOVY, HASKELL, JAVA, JAVASCRIPT, JULIA, KOTLIN, NIM, PERL, PHP, PYTHON2, PYTHON, RUBY, RUST, SCALA, SWIFT, TYPESCRIPT, VB
  • TIME ~25MIN

The Sequence Of Power

Challenge outline

Hello and welcome to the challenge!


Write a code which checks if the second given sequence contains all elements of the first given sequence squared, regardless the order.

Examples

1 2 3 4 and 1 4 9 16

4 5 6 7 and 49 36 25 16

5 2 3 0 and 9 0 25 4


You can solve this programming contest in Java, JavaScript, Python, C++ and many more languages. If you want, you can also take part in other April 2019 competitions. Below you can find some of them:



Did you like this challenge and would like to try your hand at some interesting big programming competitions? Check what’s all over the news in tech world in May 2019 in our article with upcoming IT Conferences, Hackathons and Online Challenges in May 2019.