To accustom to several different language-speaking countries. One program is often used internationally so having a language setup is very important.
D. Make a decision about which colleges to attend that night.
That if something happens such as some one gets cancer you can pay for it or if you lose your job you can still have time to react and get a new job
Is this a true or false question? If it is let me know and I can help! (:
Answer:
Check the explanation
Explanation:
Keep two iterators, i (for nuts array) and j (for bolts array).
while(i < n and j < n) {
if nuts[i] == bolts[j] {
We have a case where sizes match, output/return
}
else if nuts[i] < bolts[j] {
what this means is that the size of nut is lesser than that of bolt and we should go to the next bigger nut, i.e., i+=1
}
else {
what this means is that the size of bolt is lesser than that of nut and we should go to the next bigger bolt, i.e., j+=1
}
}
Since we go to each index in both the array only once, the algorithm take O(n) time.