项目作者: jTanG0506

项目描述 :
📘 My solutions to Swift Coding Challenges by Hacking With Swift
高级语言: Swift
项目地址: git://github.com/jTanG0506/swift-coding-challenges.git
创建时间: 2018-03-16T22:33:25Z
项目社区:https://github.com/jTanG0506/swift-coding-challenges

开源协议:

下载


:question: About

My solutions to Swift Coding Challenges by Hacking With Swift

:blue_book: Challenges Checklist

Strings

  • [X] Challenge 1: Are the letters unique?
  • [X] Challenge 2: Is a string a palindrome?
  • [X] Challenge 3: Do two strings contain the same characters?
  • [X] Challenge 4: Does one string contain another?
  • [X] Challenge 5: Count the characters
  • [X] Challenge 6: Remove duplicate letters from a string
  • [X] Challenge 7: Condense whitespace
  • [X] Challenge 8: String is rotated
  • [X] Challenge 9: Find pangrams
  • [X] Challenge 10: Vowels and consonants
  • [X] Challenge 11: Three different letters
  • [X] Challenge 12: Find longest prefix
  • [X] Challenge 13: Run-length encoding
  • [X] Challenge 14: String permutations
  • [X] Challenge 15: Reverse the words in a string

Numbers

  • [X] Challenge 16: Fizz Buzz
  • [X] Challenge 17: Generate a random number in a range
  • [X] Challenge 18: Recreate the pow() function
  • [X] Challenge 19: Swap two numbers
  • [X] Challenge 20: Number is prime
  • Challenge 21: Counting binary ones
  • Challenge 22: Binary reverse
  • Challenge 23: Integer disguised as string
  • Challenge 24: Add numbers inside a string
  • Challenge 25: Calculate a square root by hand
  • Challenge 26: Subtract without subtract

Files

  • Challenge 27: Print last lines
  • Challenge 28: Log a message
  • Challenge 29: Documents directory
  • Challenge 30: New JPEGs
  • Challenge 31: Copy recursively
  • Challenge 32: Word frequency
  • Challenge 33: Find duplicate filenames
  • Challenge 34: Find executables
  • Challenge 35: Convert images
  • Challenge 36: Print error lines

Collections

  • Challenge 37: Count the numbers
  • Challenge 38: Find N smallest
  • Challenge 39: Sort a string array by length
  • Challenge 40: Missing numbers in array
  • Challenge 41: Find the median
  • Challenge 42: Recreate index(of:)
  • Challenge 43: Linked lists
  • Challenge 44: Linked list mid-point
  • Challenge 45: Traversing the tree
  • Challenge 46: Recreate map()
  • Challenge 47: Recreate min()
  • Challenge 48: Implement a deque data structure
  • Challenge 49: Sum the even repeats
  • Challenge 50: Count the largest range
  • Challenge 51: Reversing linked lists
  • Challenge 52: Sum an array of numbers
  • Challenge 53: Linked lists with a loop
  • Challenge 54: Binary search trees

Algorithms

  • Challenge 55: Bubble sort
  • Challenge 56: Insertion sort
  • Challenge 57: Isomorphic values
  • Challenge 58: Balanced brackets
  • Challenge 59: Quicksort
  • Challenge 60: Tic-Tac-Toe winner
  • Challenge 61: Find prime numbers
  • Challenge 62: Points to angles
  • Challenge 63: Flood fill
  • Challenge 64: N Queens