Find Interview Questions for Top Companies
Neudesic Interview Questions and Answers
Ques:- Sort the linklist by node whose alternate nodes are already sorted
Right Answer:
To sort a linked list where alternate nodes are already sorted, follow these steps:

1. Split the linked list into two separate lists: one for the nodes at even indices and another for the nodes at odd indices.
2. Sort each of these two lists individually.
3. Merge the two sorted lists back together by alternating nodes from each list.

Here’s a simple implementation in Python:

```python
class Node:
def __init__(self, data):
self.data = data
self.next = None

def sort_alternate_linked_list(head):
if not head or not head.next:
return head

# Split the list into two lists
even_head = even_tail = head
odd_head = odd_tail = head.next
current = head.next.next
index = 0

while current:
if index % 2 == 0:
even_tail.next = current
even_tail = even_tail.next
else:
Ques:- What do you think is the purpose of the System class?
Asked In :- SSA, neudesic,
Ques:- why array is called the collection of similar datatypes?
Comments
Admin May 17, 2020

Array is called the collection of similar datatypes because
we can not add an object of some other type where as the
array which is declared is of another type.
For e.g
We declare a Integer array then we can not add an object of
type string into that array.We have to add an object of type
string only.

Ques:- What is the difference between Azure Blob Storage and Azure File Storage
Right Answer:
Azure Blob Storage is designed for storing unstructured data like text and binary data, while Azure File Storage provides a fully managed file share that can be accessed via SMB (Server Message Block) protocol, making it suitable for applications that require shared file access.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users