Data Structure and Algorithms problems across various platforms.

Overview

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 😃

Used Languages

  • C
  • C++
  • Java
  • Python

Contact

Give it a STAR 🌟 if you like this project.

This Project is a part of the following Open Source Program

Cross Winter of Code

Comments
  • Maximum Subarray sum problem

    Maximum Subarray sum problem

    Problem Link

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

    Coding platform

    hackerrank

    Programming language:

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

    Additional context (OPTIONAL)

    Add any other context or screenshots about the feature request here.

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

    Median of Two Sorted Arrays

    Problem Link

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

    Coding platform

    LeetCode

    Programming language

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

    Additional context (OPTIONAL)

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

    difficulty: hard crossWoc 
    opened by urvashiramdasani 18
  • Sort Colors

    Sort Colors

    Problem Link

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

    Coding platform

    LeetCode

    Programming language

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

    Additional context (OPTIONAL)

    Tricky to solve in O(n)

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

    sum of elements in the array

    Problem Link

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

    Coding platform

    Hackerrank

    Programming language

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

    Additional context (OPTIONAL)

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

    difficulty: medium crossWoc 
    opened by deephunt3r 16
  • Updated README.md

    Updated README.md

    Related Issue

    closes #638

    Describe the changes you've made

    1. Added badges in the same requested by the mentor.
    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

    Describe if there is any unusual behaviour of your code(Write NA if there isn't)

    NA

    Language used for coding

    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

    Move Zeroes

    Problem Link

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

    Coding platform

    Leetcode

    Programming language

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

    Additional context (OPTIONAL)

    Add any other context or screenshots about the feature request here.

    difficulty: easy crossWoc 
    opened by jayantjethi 15
  • Bitwise Operators

    Bitwise Operators

    Problem Link

    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

    Additional context (OPTIONAL)

    Add any other context or screenshots about the feature request here.

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

    Total Score

    Problem Link

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

    Coding platform

    CodeChef

    Programming language

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

    Additional context (OPTIONAL)

    difficulty: medium crossWoc 
    opened by Kpraful 15
  • Vaccine Production

    Vaccine Production

    Problem Link

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

    Coding platform

    Codechef

    Programming language

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

    Additional context (OPTIONAL)

    Add any other context or screenshots about the feature request here.

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

    Sorting Array of Strings

    Problem Link

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

    Coding platform

    Hackerrank

    Programming language

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

    Additional context (OPTIONAL)

    Add any other context or screenshots about the feature request here.

    difficulty: hard crossWoc 
    opened by saimanoharhm 14
  • Add two numbers

    Add two numbers

    Problem Link

    https://leetcode.com/problems/add-two-numbers/

    Coding platform

    Leetcode

    Programming language

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

    Additional context (OPTIONAL)

    would like to submit the solution for c++

    difficulty: medium crossWoc 
    opened by pri1311 14
  • fit square in triangle java added

    fit square in triangle java added

    Related Issue

    Describe the changes you've made

    Java code for fit square in triangle added!

    Describe if there is any unusual behavior of your code(Write NA if there isn't)

    NA

    Language used for coding

    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

    Fit squares in triangle problem

    Problem Link

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

    Coding platform

    CodeChef

    Programming language

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

    Additional context (OPTIONAL)

    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

    Simple Text Editor

    Problem Link

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

    Coding platform

    Hackerrank

    Programming language

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

    Additional context (OPTIONAL)

    Add any other context or screenshots about the feature request here.

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

    Snakes And Ladders (The Quickest Way Up)

    Problem Link

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

    Coding platform

    Hackerrank

    Programming language

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

    Additional context (OPTIONAL)

    Add any other context or screenshots about the feature request here.

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

    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.

    Additional context Problem Link : https://leetcode.com/problems/min-cost-climbing-stairs/

    Programming language:

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

180+ Algorithm & Data Structure Problems using C++

Ravi Mandliya 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

Rohit Dwivedula 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

Kamdev Kumar 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

Abhinav Agrawal 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

Intervue 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

Google DSC, GVP Chapter 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:

null 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

Manipal's open source academic portal. 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

Stephan Brumme 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

null 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

Giorgio Vinciguerra 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

pakgembus 50 Jan 7, 2023
This project Orchid-Fst implements a fast text string dictionary search data structure: Finite state transducer (short for FST) in c++ language.This FST C++ open source project has much significant advantages.

Orchid-Fst 1. Project Overview This project Orchid-Fst implements a fast text string dictionary search data structure: Finite state transducer , which

Bin Ding 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

MH Miyazi 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

Robus Gauli 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

Hans Wan 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.

Elmo Moilanen 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

ghassenhd 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.

Hoàng Nguyên 2 Oct 12, 2021