- Graph coloring algorithm in easy way to understand the code. I done by taking user input values for the graph coloring code.
It will help for the interview rounds. C++ and python programs.
QUESTION: We have to find the max number in given array --> like the given array is divided into subarrays and the sum of the max number in subarrays.
QUESTION: Given a matrix. It would be rotate 90° and transpose matrix.
QUESTION: Find the next permutation in an array
Input : [1,3,2]
Output : [2,1,3]
Question: Find the sum of 2 numbers in an array and give the index of the 2 numbers
I/P is: {2,7,11,19} and sum is 9
output is : [0,1] like ----> index of 2 numbers
Question: Find the middle element of linked list
Input: 2,7,11,15
Output: 11
Question: Implement Linked List & Solve Day 5
Example Input1
2, 7, 11, 15
Example Output1
11
Example Input2
2, 7, 11, 15, 21
Example Output2
15
Question: Reverse a linked list
Example Input1
2->7->11->15->NULL
Example Output1
NULL<-2<-7<-11<-15