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

Method find

FindElementsInAContaminatedBinaryTree.java:22–25  ·  view source on GitHub ↗
(int target)

Source from the content-addressed store, hash-verified

20 }
21
22 public boolean find(int target) {
23 return set.contains(target);
24
25 }
26 public void dfs(TreeNode root, int val){
27 if(root==null) return;
28 root.val = val;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected