Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ main
Function
main
lcp17-nGK0Fy.rs:23–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
22
23
fn main() {
24
println!(
"{:?}"
, calculate(
"AB"
.to_string()));
25
}
26
27
pub fn calculate(s: String) -> i32 {
28
let mut x = 1;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected