Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiwarishashwat/InterviewCodes
/ findVal
Method
findVal
CheckifWordEqualsSummationofTwoWords.java:8–16 ·
view source on GitHub ↗
(String word)
Source
from the content-addressed store, hash-verified
6
7
}
8
public
static
int
findVal(String word)
9
{
10
String n1=
""
;
11
for
(
int
i=0;i<word.length();i++)
12
{
13
n1=n1+Integer.toString((
int
)(word.charAt(i))-97);
14
}
15
return
Integer.parseInt(n1);
16
}
17
}
Callers
1
isSumEqual
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected