Question
Assume you have a JAVA Tree with the following node: class node { node left; node right; int data; } Also assume that you have
Assume you have a JAVA Tree with the following node:
class node {
node left;
node right;
int data; }
Also assume that you have a method defined (header shown below) which securely deletes data (overwrites it to prevent other processes from getting at the information) this method takes a node reference and returns nothing (void); assume it has already been tested and works. You need to write a recursive method that will traverse a tree and process each node (by process, I mean calling SecureWipe for the erase).
[public static void SecureWipe (node target)] HINTS: Think first about the simplest tree case; focus on the ORDER that the processing needs to occur
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started