Skip to content

Instantly share code, notes, and snippets.

View akarsh's full-sized avatar

Akarsh Seggemu akarsh

View GitHub Profile
@akarsh
akarsh / talks_uikonf_2020.md
Last active June 28, 2020 21:37
The file contains list of UIKonf 2020 talks I watched
import Foundation
var testingSet = Set<Int>()
// acessing and modifying sets
testingSet.insert(1)
print(testingSet)
print(testingSet.count)
@akarsh
akarsh / Podfile
Created August 18, 2019 12:15
Pod file configuration to supress CLANG documentation warning in Xcode 10+
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 August 15, 2018 05:59
Swift data structures and algorithms usage
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?