/ds-algo-solutions

A collection of solutions for Hackerrank data structures and algorithm problems in Python

Primary LanguageJavaMIT LicenseMIT

Join the chat at https://gitter.im/ds-algo-solutions/community

ds-algo-solutions

A collection of solutions for HackerRank data structures and algorithm problems in Python, JAVA, and CPP. This community-owned project aims to bring together the solutions for the DS & Algo problems across various platforms, along with the resources for learning them. Problems from Leetcode will be included soon in the project.

Contribution Instructions

Please read contribution guidelines for contributing to the project.

HackerRank

HackerRank is a place where programmers from all over the world come together to solve problems in a wide range of Computer Science domains such as algorithms, machine learning, or artificial intelligence, as well as to practice different programming paradigms like functional programming.

Topic Question Difficulty CPP JAVA Python
Arrays
2D Array-DS Easy View View View
Dynamic Array Easy View View View
Left Rotation Easy View View View
Arrays-DS Easy View View View
Sparse Arrays Medium View View View
Array Manipulation Hard View View View
Linked Lists
Print the Elements of a Linked List Easy View View View
Insert a node at the head of a linked list Easy View View View
Insert a Node at the Tail of a Linked List Easy View View View
Insert a node at a specific position in a linked list Easy View View View
Delete a Node Easy View View View
Print in Reverse Easy View View View
Compare two linked lists Easy View View View
Merge two sorted linked lists Easy View View View
Get Node Value Easy View View View
Reverse a linked list Easy View View View
Delete duplicate-value nodes from a sorted linked list Easy View View View
Find Merge Point of Two Lists Easy View View View
Cycle Detection Easy View View View
Inserting a Node Into a Sorted Doubly Linked List Easy View View View
Reverse a doubly linked list Easy View View View
Stacks
Maximum Element Medium View View View
Balanced Brackets Medium View View View
Equal Stacks Medium View View View
Largest Rectangle Medium View View
Simple Text Editor Medium View View
Waiter Medium View View
Queues
Queue using Two Stacks Medium View View View
Castle on the Grid Medium View View
Down to Zero II Medium View View View
Truck Tour Hard View View View
Queries with Fixed Length Hard View
Heap
QHEAP1 Easy View View View
Jesse and Cookies Easy View View View
Find the Running Median Hard View View View
Queries with Fixed Length Hard View
Trees
Tree - Top View Easy View View View
Tree - Preorder Traversal Easy View View View
Tree - Inorder Traversal Easy View View View
Tree - Postorder Traversal Easy View View View
Tree - Level Order Traversal Easy View View View
Tree - Height of a Binary Tree Easy View View View
Binary Search Tree - Insertion Easy View View View
Binary Search Tree - Lowest Common Ancestor Easy View View View
Is This a Binary Search Tree Medium View View View
Swap Nodes [Algo] Medium View View View
Tree - Huffman Decoding Medium View View
Tree: Square-Ten Tree Hard View
Balanced Forest Hard View View
Kitty's Calculations on a Tree Advanced View View View
Algorithms
Mark and Toys Easy View View View
Grading Students Easy View View View
Apple and Orange Easy View View View
Number Line Jumps Easy View View View
Encryption Medium View View
Cut the sticks Easy View View View
Breaking the Records Easy View View
Sales by Match Easy View View
Climbing the Leaderboard Medium View View View
Diagonal Difference Easy View
Queen's Attack II Medium View
Electronics Shop Easy View View View
The Coin change problem Medium View View View
Angry Professor Easy View View View
Migratory Birds Easy View View View
Mini-Max Sum Easy View View View
Dorsey Thief Advanced View View
Luck Balance Easy View View
Fair Cut Medium View View View
Prime XOR Medium View View View
The Great XOR Medium View View View
Sansa and XOR Medium View View
Xor sequence Medium View View View
Sherlock and the Valid String Medium View View View
Bigger is Greater Medium View View View
Utopian Tree Easy View View View
Sequence Equation Easy View View View
Find Digits Easy View View View
Modified Kaprekar Numbers Easy View
Taum and B'day Easy View
Lonely Integer Easy View View View
Sum vs XOR Easy View View View
Maximizing XOR Easy View View View
Birthday Cake Candles Easy View View View
Sub-array Division Easy View View View
Bill Division Easy View View View
Marc's Cakewalk Easy View View View
Flipping Bits Easy View View View
The Longest Common Subsequence Medium View View View
Halloween Sale Easy View View View
Chocolate Feast Easy View View View
Save the Prisoner Easy View View View
Library Fine Easy View View
Non-Divisible Subset Medium view View View
Candies Medium View
3-D Surface Area Medium View View View
Minimum Average Waiting Time Hard View
Minimum Loss Medium View View View
Beautiful Pairs Easy View View
Greedy Florist Medium View View
Priyanka and Toys Easy View View View
Compare the Triplets Easy View View View
ACM ICPC Team Easy View View
Contest Problems
Squares of a Sorted Array Medium View View View
Diagonal Difference Easy View View View
Viral Advertising Easy View View
Minimum Absolute Difference in an Array Medium View View View
Organizing Containers of Balls Easy View
Disjoint Sets
Merging Communities Easy View View View
Components in a Graph Medium View View
Super Maximum Cost Queries Hard View View View
Kundu and Tree Hard View

A cool & collective resourcešŸ”»

https://drive.google.com/file/d/1FMdN_OCfOI0iAeDlqswCiC2DZzD4nPsb/view?usp=sharing