Answer:
bool identicaltrees(Node* root1,Node* root2)//function of type boolean true if idenctical false if not.
{
if(root1==NULL&&root2==NULL)//both trees are null means identical.
return true;
if(roo1 && root2)
{
if(root1->data==root2->data)//condition for recursive call..
{
return (identicaltrees(root1->left,root2->right)&&identicaltrees(root1->right&&root2->right);
}
}
else
return false;
}
Explanation:
In this function it of type boolean returns true if both the trees are identical return false if not.First we are checking root node of both the trees if both are null then they are identical returning true.
If both root nodes are not null then checking their data.If data is same then recursively traversing on both trees and checking both trees.
else returning false.
Hello Williamsdarlene,
After reading your question, the answer to this question is:
No, OS X is not a mobile operating system. It is for computers.
Hope this helps!
The Sorting of the examples of sedimentary processes are:
- Sediment Erosion/transport - The dirt going down the drain after you give your dog a bath and drain the tub Dirt being blown off a patio
- Deposition of sediment - Dust collecting on furniture
- Weathering of rock - Tree roots extending into a rock layer and breaking it down Ice expanding in a crack in the road creating a pothole
- Compaction/lithification - A dump truck dumps a load of gravel on your lawn. The dirt below it becomes more consolidated
<h3>What is the sedimentary process known as?</h3>
Sedimentary rocks are said to be the outcome of
1) The weathering of preexisting rocks,
2) The transport of the weathering products,
3) The deposition of the material.
4) The compaction process.
5) The cementation of the sediment to form a rock.
This is known to be the most vital geological processes that has lead to the making of sedimentary rocks such as due to erosion, weathering, dissolution, and others
Therefore, The Sorting of the examples of sedimentary processes are:
- Sediment Erosion/transport - The dirt going down the drain after you give your dog a bath and drain the tub Dirt being blown off a patio
- Deposition of sediment - Dust collecting on furniture
- Weathering of rock - Tree roots extending into a rock layer and breaking it down Ice expanding in a crack in the road creating a pothole
- Compaction/lithification - A dump truck dumps a load of gravel on your lawn. The dirt below it becomes more consolidated
See full question below
Sort the following everyday examples of sedimentary processes into the bins labeled with the sedimentary processes they most closely represent. Drag the appropriate items into their respective bins View Available Hint(s) Reset Heip A dump truck dumps a load of gravel on your lawn. The dirt below it becomes more consolidated Dirt being blown off a patio Ice expanding in a crack in the road Dust collecting on furniture creating a pothole Tree roots extending into a rock layer you give your dog The dirt going down the drain after a bath and drain the tub and breaking it down Sediment Erosion/transport Deposition of sediment Weathering of rock Compaction/lithification
Learn more about sedimentary processes from
brainly.com/question/13291293
#SPJ1
Using someone else's work without giving credit is called plagiarism.