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 | |
import UIKit | |
@MainActor | |
final class AnalyticsManager { | |
static let manager: AnalyticsManager = AnalyticsManager() | |
private var services: [any AnalyticsService] = [] | |
private init() {} |
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 sprialForm(of matrix: inout [[Int]]) -> [Int] { | |
let currentIndex = 0 | |
var pritableArray: [Int] = [] | |
while currentIndex < matrix.count - 1 { | |
// ---------> Right elements | |
for item in matrix[currentIndex] { | |
pritableArray.append(item) | |
} |
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
// | |
// CoreDataController.swift | |
// | |
// Created by Keith Harrison http://useyourloaf.com | |
// Copyright (c) 2017 Keith Harrison. All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// | |
// 1. Redistributions of source code must retain the above copyright |
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
// | |
// RadixSort.swift | |
// TestAutolayout | |
// | |
// Created by Soham Bhattacharjee on 06/02/17. | |
// | |
import UIKit | |
class RadixSort: NSObject { |