I have so far written a question myself confused
import Foundation var z = ["10 10 10 10", "20 25 20 25", "100 30 20 40", "23 40 44 100"] for x in z { var s: [String] = [] NSString(string: x).componentsSeparatedByString(" ") // [ }
An array of z is given in which the size of the side of the figure is written in the lines. You need to find out what kind of figure it is.
as I understand it, you just need to parse the array line -> then make them ints -> compare and get the result so the question is what is the line from the array I divided I got four lines with numbers like me to do something further with these numbers