arushi-2298
arushi-2298
The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two end nodes. The diagram below shows two trees each with...
Given a linked list of size N. The task is to reverse every k nodes (where k is an input to the function) in the linked list. If the number...
Given an array A of N elements. Find the majority element in the array. A majority element in an array A of size N is an element that appears more...
@KhushbooGoel01 To get Pull Request for hacktoberfest 2021 I have added some files which are the questions asked in top companies. I request you to kindly look into it. This...
Given an array A[ ] of positive integers of size N, where each value represents the number of candies in a packet. Each packet can have a variable number of...