This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ArrayOfArrayView.swift | |
| // PublishedList | |
| // | |
| // Created by Paul Wood on 8/23/19. | |
| // Copyright © 2019 Paul Wood. All rights reserved. | |
| // | |
| import SwiftUI | |
| import Combine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct TriangleView: View { | |
| var body: some View { | |
| GeometryReader { proxy in | |
| return ZStack { | |
| Path { path in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // GraphView.swift | |
| // ParentChildLines | |
| // | |
| // Created by Paul Wood on 8/25/19. | |
| // Copyright © 2019 Paul Wood. All rights reserved. | |
| // | |
| import SwiftUI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIView+VisualRecursiveDescription.h | |
| // | |
| // Created by Paul Wood on 8/28/19. | |
| // Copyright © 2019 Paul Wood. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import <UIKit/UIKit.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // main.swift | |
| // ReverseWordsInAString | |
| // | |
| // Created by Paul Wood on 8/30/19. | |
| // Copyright © 2019 Paul Wood. All rights reserved. | |
| // | |
| import Foundation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Pulse.swift | |
| // | |
| // Created by Paul Wood on 8/31/19. | |
| // Copyright © 2019 Paul Wood. All rights reserved. | |
| // | |
| import Foundation | |
| import Combine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Sounds.swift | |
| // | |
| // Created by Paul Wood on 9/2/19. | |
| // Copyright © 2019 Paul Wood. All rights reserved. | |
| // | |
| import Foundation | |
| import Combine | |
| import AVFoundation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ContentView.swift | |
| // ExplosionView | |
| // | |
| // Created by Paul Wood on 9/2/19. | |
| // Copyright © 2019 Paul Wood. All rights reserved. | |
| // | |
| import SwiftUI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| /* | |
| Given an array of integers, return indices of the two numbers such that they add up to a specific target. | |
| You may assume that each input would have exactly one solution, and you may not use the same element twice. | |
| Example: | |
| Given nums = [2, 7, 11, 15], target = 9, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func gcd_recursive(_ a: Int, _ b : Int) -> Int { | |
| let higher = max(a, b) | |
| let lower = min(a, b) | |
| let r = higher % lower | |
| if r == 0 { | |
| return lower | |
| } | |
| return gcd_recursive(lower, r) | |
| } |