algorithm code snippets in swift

a* implementation in swift
a* pathfinding implementation in swift
convert a number from base 10 to base 2 in swift
convert a number from base 10 to base 8 in swift
convert a number from base 2 to base 10 in swift
create a binary search tree and insert 1,2,3,4 in it in swift
create a finite state machine in swift
create a function that implements bubble sort in swift
create a function that inverts a binary tree in swift
create a function that takes a string as a parameter that returns a seeded random number between 1 and 10 and will always be the same for the seed in swift
depth first search in swift
find the average of all nodes in a linked list in swift
find the difference of two maps in swift
find the greatest common divisor of a list of numbers in swift
find the greatest common divisor of two numbers in swift
find the kth largest element in an array in swift
find the kth largest key in a map in swift
find the kth longest word in a string in swift
find the kth smallest element in an array in swift
find the kth smallest key in a map in swift
find the least common multiple of a list of numbers in swift
find the median of all nodes in a linked list in swift
find the median of all values in a map in swift
find the mode of all keys in a map in swift
find the mode of all nodes in a linked list in swift
find the nth square number in swift
find the nth triangular number in swift
find the range of all nodes in a linked list in swift
find the shortest word in a string in swift
find the smallest node in a linked list in swift
find the standard deviation of all nodes in a linked list in swift
find the sum of a list of numbers in swift
find the sum of all nodes in a linked list in swift
find the variance of all nodes in a linked list in swift
generate a random array in swift
get distinct permutations of a set in swift
how do you determine if a string is a palindrome in swift
how to get all subsets of a set in swift
how to get distinct combinations of a set in swift
how to get the cartesian product of two sets in swift
how to make a recursive function in swift
make a two random array and find the match number in swift
perform a binary search in swift
reduce a list of roman numerals to a list of sets of consecutive roman numerals in swift
remove a node from the middle of a linked list in swift
reverse a single linked list in swift
reverse an array in swift
roman numeral to int in swift
shuffle a string in swift
shuffle an array in swift
sort a list of people by name in swift
sort list with mergesort in swift
stothers algorithm in swift
stothers matrix multiplication in swift
strassen algorithm in swift

gistlibby LogSnag