ashraf789 / Swift-Practice

Learning swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift-Practice

Learning swift, started date : 2019-07-23

Objective
-> Track learning progress
-> Share with other what i learned

Swift challenge

Solution of some swift programming challenge, "challenge are available in code"

  • Challenge #1: The Lost Animal Challenge
  • Challenge #2: The Caterpillar Challenge

Hackerrank problem solution

Solved some easy problem from hackerrank

  • Conpare Triplets
  • Diagonal Difference
  • Mini Max sum
  • Plus Minus and Zero ratio
  • Staircase
  • Birthday Cake Candles
  • Time Conversion

SimpleLogin

  • print()
  • read string
  • if condition

Linear Search

  • Implementation of lenear search

Loop

  • Foor
  • While and
  • Do While loop

Factorial
input from user then display the factorial value

  • read integer
  • reverse for loop

Array
initialize array, insert, read, remove value from array

Dictionary
Arrays are ordered collections of values. Sets are unordered collections of unique values. Dictionaries are unordered collections of key-value associations

Function
Swift function declear

Swap
Swap is very important function in every programming language

  • Swap two double
  • Swap two integer
  • Swap two string

Generic
Generic code enables you to write flexible, reusable functions and types that can work with any type, subject to requirements that you define Generics are one of the most powerful features of Swift, and much of the Swift standard library is built with generic code.

  • SWAP function by generic
  • SWAP any data type value

Swift class
Declearation of swift class, extend other class etc

  • Class decleration
  • Extend class
  • Object creation

License

Copyright (c) 2019 Syed Ashraf Ullah

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Learning swift

License:MIT License


Languages

Language:Swift 100.0%