Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
Amazon
1.9K+ articles
Microsoft
811+ articles
Accolite
305+ articles
Adobe
280+ articles
Paytm
209+ articles
SAP Labs
209+ articles
Snapdeal
166+ articles
VMWare
122+ articles
Amazon-Question
37+ articles
Snapdeal-Question
8 posts
Recent Articles
Popular Articles
C++ Program For Reversing A Linked List In Groups Of Given Size - Set 1
Last Updated: 23 July 2025
Given a linked list, write a function to reverse every k nodes (where k is an input to the function).Example:Input: 1-2-3-4-5-6-7-8-NULL, K = 3Output: 3-2-1-6-5-4-8-7-NULL...
read more
C++
Linked Lists
Microsoft
Amazon
Adobe
VMWare
Snapdeal
Paytm
Accolite
Hike
SAP Labs
MakeMyTrip
Amazon-Question
Yatra.com-Question
Snapdeal-Question
Reverse
C Program For Reversing A Linked List In Groups Of Given Size - Set 1
Last Updated: 23 July 2025
Given a linked list, write a function to reverse every k nodes (where k is an input to the function).Example:Input: 1-2-3-4-5-6-7-8-NULL, K = 3Output: 3-2-1-6-5-4-8-7-NULL...
read more
C Language
Linked Lists
Microsoft
Amazon
Adobe
VMWare
Snapdeal
Paytm
Accolite
Hike
SAP Labs
MakeMyTrip
Amazon-Question
Yatra.com-Question
Snapdeal-Question
Reverse
Java Program For Reversing A Linked List In Groups Of Given Size - Set 1
Last Updated: 23 July 2025
Given a linked list, write a function to reverse every k nodes (where k is an input to the function). Example: Input: 1->2->3->4->5->6->7->8->NULL, K = 3 Output: 3->2->1->...
read more
Java
Linked Lists
Microsoft
Amazon
Adobe
VMWare
Snapdeal
Paytm
Accolite
Hike
SAP Labs
MakeMyTrip
Amazon-Question
Yatra.com-Question
Snapdeal-Question
Reverse
Python Program For Reversing A Linked List In Groups Of Given Size - Set 1
Last Updated: 23 July 2025
Given a linked list, write a function to reverse every k nodes (where k is an input to the function). Example: Input: 1->2->3->4->5->6->7->8->NULL, K = 3 Output: 3->2->1->...
read more
Python
Linked Lists
Microsoft
Amazon
Adobe
VMWare
Snapdeal
Paytm
Accolite
Hike
SAP Labs
MakeMyTrip
Amazon-Question
Yatra.com-Question
Snapdeal-Question
Reverse
Python-DSA
Javascript Program For Reversing A Linked List In Groups Of Given Size - Set 1
Last Updated: 23 July 2025
Given a linked list, write a function to reverse every k nodes (where k is an input to the function).Example:Input: 1-2-3-4-5-6-7-8-NULL, K = 3Output: 3-2-1-6-5-4-8-7-NULL...
read more
JavaScript
Linked Lists
Microsoft
Amazon
Adobe
VMWare
Snapdeal
Paytm
Accolite
Hike
SAP Labs
MakeMyTrip
Amazon-Question
Yatra.com-Question
Snapdeal-Question
Reverse
Print a given matrix in spiral form
Last Updated: 17 July 2025
Given a matrix mat[][] of size m x n, the task is to print all elements of the matrix in spiral form.Examples:Input:mat[][] = [[1, 2, 3, 4], [5, 6, ...
read more
Matrix
DSA
Arrays
Basic Coding Problems
Microsoft
Amazon
Morgan Stanley
Oracle
D-E-Shaw
Snapdeal
Paytm
Accolite
Zoho
Nagarro
MAQ Software
BrowserStack
MakeMyTrip
nearbuy
Amazon-Question
Snapdeal-Question
spiral
pattern-printing
Arrays
Reverse a Linked List in groups of given size
Last Updated: 23 July 2025
Given aSingly linked listcontainingnnodes. The task is toreverseevery group ofknodes in the list.If the number of nodes is not a multiple ofkthen left-out nodes, in the en...
read more
Linked List
DSA
Microsoft
Amazon
Adobe
VMWare
Snapdeal
Paytm
Accolite
Hike
SAP Labs
MakeMyTrip
Amazon-Question
Yatra.com-Question
Snapdeal-Question
Reverse
Invert Binary Tree - Change to Mirror Tree
Last Updated: 23 July 2025
Given a binary tree, the task is to convert the binary tree to its Mirror tree. Mirror of a Binary Tree T is another Binary Tree M(T) with left and right children of all n...
read more
Tree
DSA
Trees
Mirror Tree
Convert to Mirror
Get the Mirror
Microsoft
eBay
Amazon
Adobe
Morgan Stanley
Samsung
VMWare
Myntra
Belzabar
Snapdeal
Paytm
Accolite
SAP Labs
tree-traversal
Ola Cabs
Amazon-Question
Snapdeal-Question
Paytm-Question
Myntra-Question
eBay-Question
Prop-Tiger-Question
Belzabar-Question
OLA-Question
VMWare-Question
cpp-queue
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !