VOOZH
about
URL: https://www.geeksforgeeks.org/tag/moonfrog-labs/
ā± Moonfrog Labs Archives - GeeksforGeeks
š geeksforgeeks
Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
Arrays
4.2K+ articles
Amazon
1.9K+ articles
Microsoft
811+ articles
Graph
565+ articles
Linked Lists
303+ articles
OYO
94+ articles
C++ Program For Pairwise Swapping Elements Of A Given Linked List
Last Updated: 23 July 2025
Given a singly linked list, write a function to swap elements pairwise.Input: 1-2-3-4-5-6-NULLOutput: 2-1-4-3-6-5-NULLInput: 1-2-3-4-5-NULLOutput: 2-1-4-3-5-NULLInput: 1-N...
read more
C++
Linked Lists
Microsoft
Amazon
Moonfrog Labs
C Program For Pairwise Swapping Elements Of A Given Linked List
Last Updated: 23 July 2025
Given a singly linked list, write a function to swap elements pairwise.Input: 1-2-3-4-5-6-NULLOutput: 2-1-4-3-6-5-NULLInput: 1-2-3-4-5-NULLOutput: 2-1-4-3-5-NULLInput: 1-N...
read more
š article_image
C Language
Linked Lists
Microsoft
Amazon
Moonfrog Labs
Java Program For Pairwise Swapping Elements Of A Given Linked List
Last Updated: 23 July 2025
Given a singly linked list, write a function to swap elements pairwise.Input: 1-2-3-4-5-6-NULLOutput: 2-1-4-3-6-5-NULLInput: 1-2-3-4-5-NULLOutput: 2-1-4-3-5-NULLInput: 1-N...
read more
š article_image
Java
Linked Lists
Microsoft
Amazon
Moonfrog Labs
Python Program For Pairwise Swapping Elements Of A Given Linked List
Last Updated: 23 July 2025
Given a singly linked list, write a function to swap elements pairwise.Input: 1-2-3-4-5-6-NULLOutput: 2-1-4-3-6-5-NULLInput: 1-2-3-4-5-NULLOutput: 2-1-4-3-5-NULLInput: 1-N...
read more
Python
Linked Lists
Microsoft
Amazon
Moonfrog Labs
C# Program For Pairwise Swapping Elements Of A Given Linked List
Last Updated: 23 July 2025
Given a singly linked list, write a function to swap elements pairwise.Input: 1-2-3-4-5-6-NULLOutput: 2-1-4-3-6-5-NULLInput: 1-2-3-4-5-NULLOutput: 2-1-4-3-5-NULLInput: 1-N...
read more
š article_image
C#
Linked Lists
Microsoft
Amazon
Moonfrog Labs
Javascript Program For Pairwise Swapping Elements Of A Given Linked List
Last Updated: 23 July 2025
Given a singly linked list, write a function to swap elements pairwise.Input: 1-2-3-4-5-6-NULLOutput: 2-1-4-3-6-5-NULLInput: 1-2-3-4-5-NULLOutput: 2-1-4-3-5-NULLInput: 1-N...
read more
š article_image
JavaScript
Linked Lists
Microsoft
Amazon
Moonfrog Labs
Minimum Number of jumps to reach end using Greedy
Last Updated: 23 January 2026
Given an array arr[] where each element represents the maximum number of steps you can move forward from that position. Find the minimum number of jumps required to reach ...
read more
š article_image
Dynamic Programming
DSA
Arrays
Amazon
Adobe
Walmart
Housing.com
Lenskart
Moonfrog Labs
Topological Sorting using BFS - Kahn's Algorithm
Last Updated: 31 October 2025
Given a Directed Acyclic Graph having V vertices and E edges, find any Topological Sorted ordering of the graph.Topological Sorted order: It is a linear ordering of vertic...
read more
š article_image
Graph
DSA
Microsoft
Amazon
Flipkart
Accolite
Moonfrog Labs
OYO
Topological Sorting
Moonfrog Labs Interview Experience | Set 4
Last Updated: 21 August 2025
1. Topological sort.2. Reverse linked list in pairs. (1-2-3-4 to 2-1-4-3)3. Print a binary tree in spiral order4. Reverse an array without using subtract sign '-' anywhere...
read more
Interview Experiences
Moonfrog Labs
Moonfrog Labs Interview Experience | Set 3
Last Updated: 15 November 2015
Q1. Given a sequence of integers, find the longest increasing subsequence. Example:arr = [1, 2, 5, 3, 7] ans : [1, 2, 5, 7] or [1, 2, 3, 7]arr = [4, 3, 1, 2] ans: [1, 2]...
read more
Interview Experiences
Moonfrog Labs
Experiences
Print all Jumping Numbers smaller than or equal to a given value
Last Updated: 23 July 2025
A number is called a Jumping Number if all adjacent digits differ by 1. The difference between ā9ā and ā0ā is not considered 1.All single-digit numbers are considered as J...
read more
Graph
Mathematical
DSA
Arrays
Microsoft
Amazon
Google
Oracle
Directi
BankBazaar
Moonfrog Labs
Opera
Zycus
BFS
DFS
Moonfrog Labs Interview Questions
Last Updated: 04 May 2022
Round 1:1 given a number, and an encoding technique like 1- A, 2- B.... 26-Z, How may different valid encryption can be done. Like 123 can be decoded as ABC or LC or AW. s...
read more
Interview Experiences
Moonfrog Labs
Interview-Questions
Experiences
Moonfrog Labs Interview Experience
Last Updated: 23 July 2025
Moonfrog Labs Interview ExperienceRecently I got interviewed at Moonfrog Labs. Here is my interview experience.Round 1(1 hour):The interviewer was very friendly and helpin...
read more
Interview Experiences
Moonfrog Labs
Experiences
Topological Sorting
Last Updated: 20 December 2025
Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uāv, vertex u comes before v in the ordering. There...
read more
š article_image
Graph
DSA
Microsoft
Amazon
Morgan Stanley
Flipkart
Samsung
Accolite
Moonfrog Labs
OYO
DFS
Topological Sorting
Jump Game - Minimum Jumps to Reach End
Last Updated: 03 April 2026
Given an array arr[] of non-negative integers, where each element represents the maximum number of steps you can jump forward from that index, determine the minimum number...
read more
š article_image
Dynamic Programming
Mathematical
DSA
Amazon
Adobe
Morgan Stanley
Walmart
SAP Labs
Housing.com
Moonfrog Labs
OYO
1
2