Write a recursive method i nsertBefore that inserts a specified data object before the first occurrence of another specified data object. For example, the method alist . i nsertBefore(target , i nData) would insert the object referenced by i nData in a new node just before the first node of alist that stores a reference to target as its data.
Modify method countCell s, assuming that cells must have a common side in order to be counted in the same blob. This means that they must be connected horizontally or vertically but not diagonally. Under this condition, the value of the method call aBlob. countCell s (4 , 1) would be 4 for the grid in Figure 5.16.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here