# Data-Structure-and-Algorithms

Covering various practice problems of Arrays, Stacks, queue, tree, graph and different Algorithms. A collection of solutions for Data Structure and Algorithms problems across various platforms in different languages.

## Contributing

This repository is contribution friendly. If you'd like to add or improve any algorithm, your contribution is welcome!
Don't forget to follow Contribution Guidelines 😃

• C
• C++
• Java
• Python

## Contact

### This Project is a part of the following Open Source Program

• #### Maximum Subarray sum problem

https://www.hackerrank.com/challenges/maximum-subarray-sum/problem

hackerrank

### Programming language:

• [ ] C
• [x ] C++
• [x] Java
• [x] Python

difficulty: hard crossWoc
opened by kanak22 24
• #### Median of Two Sorted Arrays

https://leetcode.com/problems/median-of-two-sorted-arrays/

LeetCode

### Programming language

• [x] C
• [x] C++
• [x] Java
• [x] Python

I want to solve this problem in C++ as a part of crossWoC.

difficulty: hard crossWoc
opened by urvashiramdasani 18
• #### Sort Colors

https://leetcode.com/problems/sort-colors/

LeetCode

### Programming language

• [x] C
• [x] C++
• [x] Java
• [x] Python

Tricky to solve in O(n)

difficulty: medium crossWoc
opened by rahil-1407 17
• #### sum of elements in the array

https://www.hackerrank.com/challenges/1d-arrays-in-c/problem

Hackerrank

### Programming language

• [X] C
• [x] C++
• [x] Java
• [x] Python

I would like to solve in c lang. could you please assign it to me

difficulty: medium crossWoc
opened by deephunt3r 16

## Related Issue

closes #638

### Describe the changes you've made

2. Modified 1st line of the readme file (I can undo it if you want)
3. Heading of the repo is center aligned on the readme file

NA

MD+HTML

### Checklist:

• [x] My code follows the style guidelines of this project.
• [x] I have performed a self-review of my own code.
• [x] I have commented my code, particularly in hard-to-understand areas.
• [x] I have documented the code.
• [x] New and existing unit tests pass locally with my changes.
opened by stlyash 16
• #### Move Zeroes

https://leetcode.com/problems/move-zeroes/

Leetcode

### Programming language

• [ ] C
• [x] C++
• [x] Java
• [x] Python

difficulty: easy crossWoc
opened by jayantjethi 15
• #### Bitwise Operators

Mention the problem on which you want to work on https://www.hackerrank.com/challenges/bitwise-operators-in-c/problem

### Coding platform

Mention the coding platform from where you have picked the problem Hackerrank

### Programming language

• [ ] C
• [x] C++
• [x] Java
• [x] Python

difficulty: easy crossWoc
opened by bharth-stack 15
• #### Total Score

https://www.codechef.com/CCRC21C/problems/TOTSCR

CodeChef

### Programming language

• [x] C
• [x] C++
• [x] Java
• [x] Python

difficulty: medium crossWoc
opened by Kpraful 15
• #### Vaccine Production

https://www.codechef.com/problems/VACCINE1

Codechef

### Programming language

• [x] C
• [x] C++
• [ ] Java
• [x] Python

good first issue crossWoc
opened by Ayush7614 15
• #### Sorting Array of Strings

https://www.hackerrank.com/challenges/sorting-array-of-strings/problem

Hackerrank

### Programming language

• [x] C
• [x] C++
• [x] Java
• [x] Python

difficulty: hard crossWoc
opened by saimanoharhm 14

Leetcode

### Programming language

• [x] C
• [x] C++
• [x] Java
• [x] Python

would like to submit the solution for c++

difficulty: medium crossWoc
opened by pri1311 14

## Related Issue

### Describe the changes you've made

Java code for fit square in triangle added!

`NA`

Java

### Checklist:

• [x] My code follows the style guidelines of this project.
• [x] I have performed a self-review of my own code.
• [x] I have commented my code, particularly in hard-to-understand areas.
• [x] I have documented the code.
• [x] New and existing unit tests pass locally with my changes.
opened by sriniva7 2
• #### Fit squares in triangle problem

https://www.codechef.com/problems/TRISQ

CodeChef

### Programming language

• [ ] C
• [x] C++
• [ ] Java
• [ ] Python

C++ file is already present in the question folder "Fit Squares in Triangle". Feel free to add code to this problem in other languages.

difficulty: easy
opened by Nivedita967 1
• #### Simple Text Editor

https://www.hackerrank.com/challenges/simple-text-editor/problem

Hackerrank

### Programming language

• [ ] C
• [x] C++
• [ ] Java
• [x] Python

difficulty: medium
opened by ishikabansal04 3
• #### Snakes And Ladders (The Quickest Way Up)

https://www.hackerrank.com/challenges/the-quickest-way-up/problem

Hackerrank

### Programming language

• [ ] C
• [x] C++
• [x] Java
• [ ] Python

difficulty: medium
opened by ishikabansal04 6
• #### Min Cost Climbing Stairs

Is your feature request related to a problem? Please describe. It is a problem on Leetcode which can be solved using dynamic programming.

Describe the solution you'd like I would like to solve it in Java.

Programming language:

• [ ] C
• [ ] C++
• [x] Java
• [ ] Python
difficulty: easy
###### Nivedita Singh
Front-end Developer | Open Source Developer | KWoc | Mentor @CrossWoc | Lifelong learner 📚
###### 180+ Algorithm & Data Structure Problems using C++

180+ Algorithm & Data Structure Problems using C++

5.2k Jan 8, 2023
###### Repository of problems and solutions of labsheets used for Data Structures and Algorithms (CS F211) in Semester 2, 2020-21 at BITS Pilani - Hyderabad Campus.

CS F211 Data Structures and Algorithms (BITS Pilani - Hyderabad Campus) This repository contains the problems, solution approaches & explanations and

27 Oct 31, 2022
###### Data structures and algorithms topicwise practice problems in C++

Data-Structure-and-Algorithm data structures and algorithms topicwise practice problems in C++ Q. find maximum element in an array Q. Sum of all Subar

2 Jan 10, 2022
###### This repository aims to contain solutions and explanations to various competitive programming problems, which may be important for interviews and online tests of different companies.

Competitive Programming Solutions Compilation Hello everyone ?? This repository contains solutions and explanations to various competitive programming

33 Dec 14, 2022
###### The ultimate guide for data structure and algorithms

Quick Notes: For Arrays: (methods that can be applied) sorting and then doing something, hashtable, two pointers in a loop are some of the operations

44 Nov 25, 2022
###### Implementation of various data structures and algorithms.

Data Structures and Algorithms A place where you can find and learn the copious number of algorithms in an efficient manner. This repository covers va

15 Jul 24, 2022
###### Solutions for problems given in ETH course Algorithms Lab in Fall 2020

Algolab2020 Solutions for problems given in ETH course Algorithms Lab in Fall 2020. The code for these problems is written with the following in mind:

45 Jan 3, 2023
###### An open source initiative for implementing and testing algorithms in various programming languages.

Algorithms An open source initiative for implementing and testing algorithms in various programming languages. Contributing The idea here is to learn

1 Nov 28, 2021
###### A collection of various algorithms to produce length-limited prefix codes

Introduction This is a collection of various algorithms to produce length-limited prefix codes. My library is written in plain C with tons of comments

15 Nov 7, 2022
###### Is a linear data structure with O(log n) searches and O(cbrt n) insertions and index lookups.

A binary cube is a linear data structure that contains a sorted two dimensional dynamic array of nodes which each point to a sorted array

22 Jul 13, 2022
###### 🏅State-of-the-art learned data structure that enables fast lookup, predecessor, range searches and updates in arrays of billions of items using orders of magnitude less space than traditional indexes

The Piecewise Geometric Model index (PGM-index) is a data structure that enables fast lookup, predecessor, range searches and updates in arrays of bil

650 Dec 31, 2022
###### Teaching materials for Algorithm Bootcamp: Data Structure.

Data Structure Materials Materials Topics Code Introduction to Data Structures Struct Pointer Dynamic Memory Allocation 00_intro_to_ds.cpp Linked List

50 Jan 7, 2023
10 Oct 18, 2022
###### Total 21 math problem solved by c language with 4 types of functional reference. Also added circular repeated linked list system of Data structure.

C-ProblemSolve Total 21 math problem solved by c language with 4 types of functional reference. Also added circular repeated linked list system of Dat

3 Aug 28, 2021
###### Typesafe, Generic & Fastest Set Data structure implementation in C

Typesafe & Fast as fuck Set in C Key Features Extremely fast non-cryptographic hash algorithm XXHash Complete Typesafe APIs Double Hashing to avoid bo

4 Sep 6, 2021
###### A simple & stupid data structure library for C

HDataStruct - Hans' Data Structures Library A simple & stupid data structure library for C. Introduction This is a small C library containing several

3 Oct 6, 2021
###### Hashmap data structure with string keys

Hashmap Library implementing the hash map data structure with open addressing, robin hood hashing more presicely, as a collision resolution strategy.

2 Jun 23, 2022
###### Data structure manipulation in C

data-structure Data structure manipulation in C This is a set of functions for handling a singly linked list Pros: easy to read and short. the linked

1 Nov 27, 2021
###### This is a data structure repo written with C++

Data structures In CPP This repo contains many algorithms and data structures in C++. There will be an explanation for each algorithm/data structure.

2 Oct 12, 2021