-
Что такое инвариант цикла?
-
Что такое сложность алгоритма? O(n) нотация. O(???) для операций с NSArray, NSDictionary, запрос в БД (индексированный VS. неиндексированный)
-
CS data structures (linked list, binary tree, array)
-
Различия аутентификации, авторизации
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
1) Sub-Array with the Largest Sum | |
You are given an array with integers (both positive and negative) in any random order. | |
Find the sub-array with the largest sum | |
2) Given 2 words, return true if second word has a substring that is also an anagram of word 1. | |
LGE, GOOGLE => True | |
GEO, GOOGLE => False | |
3) How Strong is an Egg? | |
You have two identical eggs. |
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 | |
class MyView: CustomStringConvertible { | |
let index: UInt | |
var ID: String | |
init(withIndex index: UInt) { | |
self.index = index | |
ID = String(index) |
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 | |
class UIViewContoller { | |
func viewDidLoad() { | |
// 1st case | |
print("1") | |
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 | |
// This code is contained inside "some" framework, like UIKit, Foundation e.t.c. | |
class RandomStringGenerator { | |
static func makeRandomString() -> NSString { | |
return "some random string" | |
} | |
} |
NewerOlder