Skip to content

kemalenver/SwiftHackerRank

Repository files navigation

Swift HackerRank Submissions

This is a collection of some of my Hacker Rank submissions written in Swift

To allow these to work in XCode 9 playgrounds I have done the following:

  • Updated to Swift 4.1
  • readLine() has been mocked

Algorithms

Bit Manipulation

  • Bit Manipulation - Lonely Integer
  • Bit Manipulation - Sum vs XOR

Dynamic Programming

  • The Maximum Subarray

Game Theory

  • Game of Stones
  • Tower Breakers

Implementation

  • SockMerchant
  • Designer PDF Viewer
  • Equalize the Array
  • Grading
  • Matrix Layer Rotation

Sorting

  • Insertion Sort - Part 1
  • Quicksort 1 - Partition
  • Quicksort 2 - Sorting
  • Quicksort In-Place
  • Insertion Sort - Advanced Analysis (Problem, same as my passing python algorithm but not the same result!)
  • Closest Numbers
  • Counting Sort 3
  • The Full Counting Sort

Strings

  • CamelCase.
  • Gemstones
  • Palindrome Index
  • Super Reduced String
  • Two Characters
  • Beautiful Binary String
  • Anagram
  • Making Anagrams
  • Game of Thrones - I
  • Two Strings
  • Sherlock and Valid String
  • Sherlock and Anagrams
  • HackerRank in a String!

Warmup

  • Simple Array Sum
  • Circular Array Rotation
  • Time Conversion

Data Structures

Arrays

  • Arrays - DS

Search

  • Ice Cream parlor

Functional Programming

Introduction

  • Solve me first

Security

Functions

  • Security Functions
  • Security Functions II
  • Security Bijective Functions
  • Security Inverse Functions
  • Security Permutations
  • Security Involution

Tutorials

30 Days

  • Day 9: Recursion
  • Day 20: Sorting
  • Day 25: Running Time and Complexity
  • Day 29: Bitwise AND

Authors and Contributors

Kemal Enver (@kemalenver)

About

Some of my submissions to HackerRank written in Swift and usable in XCode 8 playgrounds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages