Skip to content

Dwashi2/swift-Combinations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

swift-Combinations


Swift Study

Project to study Swift

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contact

About The Project

  Create a function that takes a variable number of arguments, 
  each argument representing the number of items in a group, 
  and returns the number of permutations (combinations) of 
  items that you could get by taking one item from each group.
  
  Examples:
  combinations(2, 3) ➞ 6
  combinations(3, 7, 4) ➞ 84
  combinations(2, 3, 4, 5) ➞ 120
  
  Notes:
  Don't overthink this one.
  Input may include the number zero.

  Excercise from: https://edabit.com/challenges/swift

Getting Started

Open the file Combinations.xcodeproj

Prerequisites

  • Xcode 12.4
  • Use iPhone 12 mini as simulator

Contact

Daniel Washington Ignacio - danielvertigo@hotmail.com

Click to access my LinkedIn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages