├── .github └── workflows │ ├── go.yml │ └── rust.yml ├── .gitignore ├── LICENSE ├── README.md ├── go ├── arraylist │ ├── arraylist.go │ ├── arraylist_test.go │ ├── longest_palindrome.go │ ├── longest_palindrome_test.go │ ├── move_zeroes.go │ ├── move_zeroes_test.go │ ├── remove_duplicates.go │ ├── remove_duplicates_test.go │ ├── remove_element.go │ ├── remove_element_test.go │ ├── reverse_string.go │ └── reverse_string_test.go ├── binarytree │ ├── bst.go │ └── bst_test.go ├── go.mod ├── go.sum ├── hashmap │ ├── hashmap.go │ └── hashmap_test.go ├── linkedlist │ ├── detect_cycle.go │ ├── detect_cycle_test.go │ ├── get_intersection_node.go │ ├── get_intersection_node_test.go │ ├── is_palindrome.go │ ├── is_palindrome_test.go │ ├── linkedlist.go │ ├── merge_k_lists.go │ ├── merge_k_lists_test.go │ ├── merge_two_lists.go │ ├── merge_two_lists_test.go │ ├── middle_node.go │ ├── middle_node_test.go │ ├── partition.go │ ├── partition_test.go │ ├── remove_nth_from_end.go │ ├── remove_nth_from_end_test.go │ ├── reverse_k_group.go │ ├── reverse_k_group_test.go │ ├── reverse_list.go │ ├── reverse_list_n.go │ ├── reverse_list_n_test.go │ └── reverse_list_test.go ├── queue │ ├── queue.go │ └── queue_test.go └── stack │ ├── stack.go │ └── stack_test.go └── rust ├── Cargo.toml └── src ├── arraylist ├── longest_palindrome.rs ├── mod.rs ├── move_zeroes.rs ├── remove_duplicates.rs ├── remove_element.rs └── reverse_string.rs ├── lib.rs └── linkedlist ├── detect_cycle.rs ├── get_intersection_node.rs ├── is_palindrome.rs ├── merge_k_lists.rs ├── merge_two_lists.rs ├── middle_node.rs ├── mod.rs ├── partition.rs ├── remove_nth_from_end.rs ├── reverse_k_group.rs ├── reverse_list.rs └── reverse_list_n.rs /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/README.md -------------------------------------------------------------------------------- /go/arraylist/arraylist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/arraylist.go -------------------------------------------------------------------------------- /go/arraylist/arraylist_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/arraylist_test.go -------------------------------------------------------------------------------- /go/arraylist/longest_palindrome.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/longest_palindrome.go -------------------------------------------------------------------------------- /go/arraylist/longest_palindrome_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/longest_palindrome_test.go -------------------------------------------------------------------------------- /go/arraylist/move_zeroes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/move_zeroes.go -------------------------------------------------------------------------------- /go/arraylist/move_zeroes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/move_zeroes_test.go -------------------------------------------------------------------------------- /go/arraylist/remove_duplicates.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/remove_duplicates.go -------------------------------------------------------------------------------- /go/arraylist/remove_duplicates_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/remove_duplicates_test.go -------------------------------------------------------------------------------- /go/arraylist/remove_element.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/remove_element.go -------------------------------------------------------------------------------- /go/arraylist/remove_element_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/remove_element_test.go -------------------------------------------------------------------------------- /go/arraylist/reverse_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/reverse_string.go -------------------------------------------------------------------------------- /go/arraylist/reverse_string_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/arraylist/reverse_string_test.go -------------------------------------------------------------------------------- /go/binarytree/bst.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/binarytree/bst.go -------------------------------------------------------------------------------- /go/binarytree/bst_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/binarytree/bst_test.go -------------------------------------------------------------------------------- /go/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/go.mod -------------------------------------------------------------------------------- /go/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/go.sum -------------------------------------------------------------------------------- /go/hashmap/hashmap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/hashmap/hashmap.go -------------------------------------------------------------------------------- /go/hashmap/hashmap_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/hashmap/hashmap_test.go -------------------------------------------------------------------------------- /go/linkedlist/detect_cycle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/detect_cycle.go -------------------------------------------------------------------------------- /go/linkedlist/detect_cycle_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/detect_cycle_test.go -------------------------------------------------------------------------------- /go/linkedlist/get_intersection_node.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/get_intersection_node.go -------------------------------------------------------------------------------- /go/linkedlist/get_intersection_node_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/get_intersection_node_test.go -------------------------------------------------------------------------------- /go/linkedlist/is_palindrome.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/is_palindrome.go -------------------------------------------------------------------------------- /go/linkedlist/is_palindrome_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/is_palindrome_test.go -------------------------------------------------------------------------------- /go/linkedlist/linkedlist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/linkedlist.go -------------------------------------------------------------------------------- /go/linkedlist/merge_k_lists.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/merge_k_lists.go -------------------------------------------------------------------------------- /go/linkedlist/merge_k_lists_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/merge_k_lists_test.go -------------------------------------------------------------------------------- /go/linkedlist/merge_two_lists.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/merge_two_lists.go -------------------------------------------------------------------------------- /go/linkedlist/merge_two_lists_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/merge_two_lists_test.go -------------------------------------------------------------------------------- /go/linkedlist/middle_node.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/middle_node.go -------------------------------------------------------------------------------- /go/linkedlist/middle_node_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/middle_node_test.go -------------------------------------------------------------------------------- /go/linkedlist/partition.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/partition.go -------------------------------------------------------------------------------- /go/linkedlist/partition_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/partition_test.go -------------------------------------------------------------------------------- /go/linkedlist/remove_nth_from_end.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/remove_nth_from_end.go -------------------------------------------------------------------------------- /go/linkedlist/remove_nth_from_end_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/remove_nth_from_end_test.go -------------------------------------------------------------------------------- /go/linkedlist/reverse_k_group.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/reverse_k_group.go -------------------------------------------------------------------------------- /go/linkedlist/reverse_k_group_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/reverse_k_group_test.go -------------------------------------------------------------------------------- /go/linkedlist/reverse_list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/reverse_list.go -------------------------------------------------------------------------------- /go/linkedlist/reverse_list_n.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/reverse_list_n.go -------------------------------------------------------------------------------- /go/linkedlist/reverse_list_n_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/reverse_list_n_test.go -------------------------------------------------------------------------------- /go/linkedlist/reverse_list_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/linkedlist/reverse_list_test.go -------------------------------------------------------------------------------- /go/queue/queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/queue/queue.go -------------------------------------------------------------------------------- /go/queue/queue_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/queue/queue_test.go -------------------------------------------------------------------------------- /go/stack/stack.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/stack/stack.go -------------------------------------------------------------------------------- /go/stack/stack_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/go/stack/stack_test.go -------------------------------------------------------------------------------- /rust/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/Cargo.toml -------------------------------------------------------------------------------- /rust/src/arraylist/longest_palindrome.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/arraylist/longest_palindrome.rs -------------------------------------------------------------------------------- /rust/src/arraylist/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/arraylist/mod.rs -------------------------------------------------------------------------------- /rust/src/arraylist/move_zeroes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/arraylist/move_zeroes.rs -------------------------------------------------------------------------------- /rust/src/arraylist/remove_duplicates.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/arraylist/remove_duplicates.rs -------------------------------------------------------------------------------- /rust/src/arraylist/remove_element.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/arraylist/remove_element.rs -------------------------------------------------------------------------------- /rust/src/arraylist/reverse_string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/arraylist/reverse_string.rs -------------------------------------------------------------------------------- /rust/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/lib.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/detect_cycle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/detect_cycle.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/get_intersection_node.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/get_intersection_node.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/is_palindrome.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/is_palindrome.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/merge_k_lists.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/merge_k_lists.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/merge_two_lists.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/merge_two_lists.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/middle_node.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/middle_node.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/mod.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/partition.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/partition.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/remove_nth_from_end.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/remove_nth_from_end.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/reverse_k_group.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/reverse_k_group.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/reverse_list.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/reverse_list.rs -------------------------------------------------------------------------------- /rust/src/linkedlist/reverse_list_n.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nange/algorithms-in-go-rust/HEAD/rust/src/linkedlist/reverse_list_n.rs --------------------------------------------------------------------------------