Skip to content

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

License

Notifications You must be signed in to change notification settings

sai-vamshi-18/ds-algo-solutions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
Castle on the Grid Medium View View
Down to Zero II Medium View View
Heap
QHEAP1 Easy View
Jesse and Cookies Easy View View View
Find the Running Median Hard View View View
Trees
Tree : Top View Easy 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
Is This a Binary Search Tree? Medium View View
Swap Nodes [Algo] Medium View View
Tree: Huffman Decoding Medium View View
Balanced Forest Hard View
Kitty's Calculations on a Tree Advanced View View
Algorithms
Grading Students Easy View View View
Apple and Orange Easy View View
Number Line Jumps Easy View View
Encryption Medium 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
The Great XOR Medium View View
Sansa and XOR Medium View View
Xor sequence Medium View View
Bigger is Greater Medium View View
Sherlock and the Valid String Medium 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
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
Library Fine Easy View View
Non-Divisible Subset Medium View View
Minimum Average Waiting Time Hard View
Minimum Loss Medium View View
Beautiful Pairs Easy View
Greedy Florist Medium View
Contest Problems
Squares of a Sorted Array Medium View View
Diagonal Difference Easy View View View
Viral Advertising Easy View View
Minimum Absolute Difference in an Array Medium View View
Organizing Containers of Balls Easy View
Disjoint Sets
Merging Communities Easy View View View
Components in a Graph Medium View
Super Maximum Cost Queries Hard View View View

A cool & collective resourceđź”»

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 39.8%
  • Java 36.2%
  • Python 24.0%