Skip to content

Instantly share code, notes, and snippets.

Akarsh Seggemu akarsh

Block or report user

Report or block akarsh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View practise_sets.swift
import Foundation
var testingSet = Set<Int>()
// acessing and modifying sets
testingSet.insert(1)
print(testingSet)
print(testingSet.count)
@akarsh
akarsh / Podfile
Created Aug 18, 2019
Pod file configuration to supress CLANG documentation warning in Xcode 10+
View Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CLANG_WARN_DOCUMENTATION_COMMENTS'] = 'NO'
end
end
end
@akarsh
akarsh / example_explanation_of_swift_ds_and_a.txt
Created Aug 15, 2018
Swift data structures and algorithms usage
View example_explanation_of_swift_ds_and_a.txt
Where would data structures and algorithms are applied. Here are the quick examples:
- Diffing for UITableView / UICollection batchUpdate, using Longest Common Subsequence, or Edit Distance.
- Cache the value using Dictionary to perform search in O(1). (Which is the Hash-table and Dynamic Programming feature in CS)
- Traverse Tree will be used when you would like to traverse whole view hierarchy.
- You would need Trie data-structure to have a cached experience for @mention in Chat app / Dictionary.
- And how do you find the path between 2 points in Map app, Transport app without using Graph? ( Or you could use WebView and leave the hard thing for other engineers )
- How do you structure a rich text Document without understand Tree data structure?
You can’t perform that action at this time.