Would you like to receive similar articles straight to your inbox?

Introducing Swift for Algorithms and Artificial Intelligence Domains

In recent weeks, our passionate community has made many requests for us to support one of the most popular new languages: Apple’s Swift. We listened, and now you can solve HackerRank challenges using Swift.  We have enabled it for all the challenges in the Algorithms and Artificial Intelligence domains.  Swift is specialized for iOS and OS X apps, however, now it can be used to solve more than 500 challenges at HackerRank. With the addition of Swift, we now support more than 50 languages.
More about Swift:  Being a multi-paradigm language, it’s among the flag bearers of modern languages. Sometimes referred to as “Objective-C without C,” Swift provides the programming interface to Apple’s Cocoa and Cocoa Touch frameworks. It is intended to be the successor of Objective-C, and relies on Objective-C runtime environment but it is concise and more resilient to erroneous code.
Swift is a compiled programming language built on an incredibly high-performance LLVM compiler infrastructure. Even though it is primarily inspired by Objective-C, it has borrowed concepts from Rust, Haskell, Ruby, Python and C#.  Overall, it employs contemporary programming language theory concepts and strives to present a simpler and shorter syntax.
Hope you enjoy!


Take challenges in the Algorithms and Artificial Intelligence domains now!
HackerRank Now Supports Swift

Comments (8)

  • Why it is removed right now?

    • Muhammad Annaqeeb
    • May 9, 2015 at 12:51 am
    • Reply
  • Swift is Currently not available in the submission languages in Algorithms section nor in Artifcial Intelligence section.

    • Muhammad Annaqeeb
    • May 9, 2015 at 4:11 pm
    • Reply
  • I wil like to know why Swift isn´t available at algorithms section? thanks

    • efrence
    • May 31, 2015 at 12:50 pm
    • Reply
  • What about Swift? When it will be supported?

    • Lampros
    • June 16, 2015 at 1:30 pm
    • Reply
  • Thanks for giving this kind of information to learn about Algorithms

  • I am trying to solve a swift problem of summation of two integers using closures. Though it is easy sum, I am facing the compilation error because of the default code given there. Can you please revert back so that i can solve that problem and complete a course. Problem : Using closure find sum of two integer numbers

    • Yash
    • April 17, 2018 at 6:25 am
    • Reply
  • Its 2018 does hacker rank now use swift 4 ?

Leave a Reply

Your email address will not be published. Required fields are marked *