MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / isOpen

Method isOpen

ValidParenthesis.java:3–15  ·  view source on GitHub ↗
(char ch)

Source from the content-addressed store, hash-verified

1class Solution {
2
3 public boolean isOpen(char ch)
4 {
5 switch(ch)
6 {
7 case '(':
8 return true;
9 case '{':
10 return true;
11 case '[':
12 return true;
13 }
14 return false;
15 }
16
17 public boolean isSame(char str, char stk)
18 {

Callers 2

isSameMethod · 0.95
isValidMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected