MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / pow

Function pow

1044. Longest Duplicate Substring/src/main.rs:81–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80 #[test]
81 fn pow() {
82 assert_eq!(Solution::pow(2, 2, 3), 1);
83 assert_eq!(Solution::pow(26, 3, 33333333333), 17576);
84 assert_eq!(Solution::pow(26, 50000, 9223372036854775807), 8527440374548257796);
85
86 }
87}

Callers 4

getHashMethod · 0.85
grayCodeMethod · 0.85
largest_palindromeMethod · 0.85
testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected