Can anyone please solve this question?
Question I am attaching in pic.
Can anyone please solve this question? Question I am attaching in pic
Yes please send the picture.
Please send the link as well. I’ll try and submit it to check if my solution is correct or not.
I have sent you message regarding this one.
Yeah I have seen that. Okay I will try it.
Sir aap ek baar plz second test case smjhaado.
Second Test case mein last condition is U 1 6
So Isme last mein 2 alag kaise krdiya
1 6 positions aage jayega
nd link krdega
but agar wo exist nhi krta
So Uss linked list(jo present hain) usko Circular krdega
As per Given U x p function.
Ab fir isme kya krrha
wo na smjh aarha
Actually its not clearly explained in the question for the operation - I 2 z y x
Because z and y may have a number of values between them. Then where do we have to insert x.
For example, if z and y are - 2 and 5 and they have a node 6 between them
2 6 5
Then x should be inserted before 6 or after it. This is not given in the question.
But I have implemented it properly and upar waaa function bhi smjh aagya Sir.
Bas ab jo O/P hain
Usko kaise print krwaana
Wo nhi smjh aarha.
After all the operations are done, first check if the linked list is circular or not. If it is, diplay 1 in first line. Else display 0.
Line 2 will be number of nodes which are pointed by more than one node. If this count is 0, line 4 will not be displayed.
Line 3 is the order in which nodes are counted if answer is not 0. If it is 0, display the linked list.
Line 4 will be count of the values displayed in line 3 if line 2’s answer is not 0.
Both input and output formats are a bit ambiguous.
Hmm
That’s true.
I don’t know why they gave this level of Questions in College Assignments
Yeah that’s right. Please discuss with your other college friends as well.
Okayy Sir…
Sure
Please mark this doubt as resolved now.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.