feat: add Go theory guides (terminology, algorithms, testing, debugging) and 2 new chapters
This commit is contained in:
1 parent
84be3e5d77
commit
011f23e637
13 files changed
+374
-3
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package algorithms
|
||||
|
||||
func BinarySearch(sorted []int, target int) (int, bool) {
|
||||
panic("TODO: wyszukiwanie binarne O(log n): zwróć (indeks, true) lub (-1, false)")
|
||||
}
|
||||
|
||||
func TwoSum(nums []int, target int) (int, int, bool) {
|
||||
panic("TODO: znajdź (i, j, true) w O(n) używając map[int]int")
|
||||
}
|
||||
|
||||
func IsPalindrome(text string) bool {
|
||||
panic("TODO: dwa wskaźniki na []rune, ignoruj wielkość liter i znaki niealfanumeryczne")
|
||||
}
|
||||
|
||||
func MaxWindowSum(nums []int, k int) (int, bool) {
|
||||
panic("TODO: okno przesuwne O(n); zwróć (0, false) gdy k <= 0 lub k > len(nums)")
|
||||
}
|
||||
Reference in new issue
Block a user