Competitive Programming Solutions Compilation

Overview

Competitive Programming Solutions Compilation

CodeFactor
Hello everyone 👋

This repository contains solutions and explanations to various competitive programming problems, which are important for interviews and online tests of different companies.

Anyone is free to contribute to this repository, please follow the contribution guidelines below 👇

Do keep checking the Discussions tab to be updated about the events in this repository. Feel free to start a discussion if you wish.

Guidelines for Contributing

To contribute to this repository:

  • Look through the issues tab and find an issue that you feel you can contribute to.

  • Comment on the issue of your choice, and make sure that the issue is assigned to you

  • Fork this repository.

  • In the new forked repository created, create a folder with name of the problem under the most suitable topic/tag of the program, like this example:
    alt text
    (here, Graph is the suitable folder, and Krushal's Minimum Spanning Tree Algorithm is a folder with the name of the problem)

  • In the folder, provide the following:-

    • a README.md describing the problem and if possible, its explanation.

    • a solution file with the name main. , where is the extension for the language, in as many programming languages as possible.

    image (demo folder structure)

  • Once you are done, commit the changes and push to your fork.

  • Now go ahead create a pull request with an appropriate heading, which will be reviewed by us as soon as possible. If acceptable, your pull request will be merged into the repository, and you will be able to see your name in the list of contributors here

  • If you like this repo, do star it, and let others know about this repository :)

  • Also our website is now live! It has been made by @Ahti223 . You can find it here.

PS: This repo has been excluded from Hacktobestfest for being a DSA related repository, so any Pull Request to this repository will not longer be considered for Hacktoberfest.

Stargazers over time

Stargazers over time

Repository Stats

Contributors Forks Stargazers Issues

Comments
  • Adding new programs and their solutions.

    Adding new programs and their solutions.

    @skully-coder Hello 👋 , I wanna add some new programs of array, binary tree, and linked list but if you allow me to do.

    Kindly look into this and assign me if it requires, also let me know the answer of my another comment ( from another issue ) .

    I'll be happy to contribute.

    good first issue 
    opened by Mr-vabs 22
  • Next Greater Element [Competitive Programming Problem]

    Next Greater Element [Competitive Programming Problem]

    Is your feature request related to a problem? Please describe. Given an array, print the Next Greater Element (NGE) for every element. The Next greater Element for an element x is the first greater element on the right side of x in the array. Elements for which no greater element exist, consider the next greater element as -1.

    Describe the Test-Case Screenshot 2021-10-04 at 10 30 33 PM

    Describe alternatives you've considered This code is originally mine.

    Additional context @skully-coder .Please assign this issue to me. [x] I will contribute in Java

    good first issue 
    opened by ankit-95 8
  • Code for heap sort to sort using max heap

    Code for heap sort to sort using max heap

    Is your feature request related to a problem? Please describe. I would like to add code for Implementation of Heap sort to sort given set of values using max or min heap.

    Describe the solution you'd like I will use array for space optimization.

    Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

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

    good first issue 
    opened by shinchancode 7
  • [BUG] Website Non-functional

    [BUG] Website Non-functional

    Bug Description

    The website isn't working at all. It seems like the site is not able to fetch any static files (probably) due to change in the URL. Although you made the necessary change in package.json, it seems like that hasn't been reflected in the index.html of the gh-pages branch (i.e. published branch). Not sure if it was published before making the URL change or there is some other issue.

    Bug location

    In Dev Tools: It is unable to fetch any of the static files. If we check the index.html in gh-pages branch, we can see it still contains the hacktoberfest-competitiveprogramming in the URL, which is probably the root cause. servererror

    bug 
    opened by Athi223 6
  • Implementation of circular queue using array. [Fixed length]

    Implementation of circular queue using array. [Fixed length]

    Is your feature request related to a problem? Please describe. I want to add code for circular queue using array.

    Describe the solution you'd like I will use array having fixed length and will implement operation of circular queue

    Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

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

    good first issue 
    opened by Sachin19k 5
  • [MISSING]

    [MISSING]

    opened by eurus9696 4
  • added the wave sort array program alongwith the readme file

    added the wave sort array program alongwith the readme file

    Hi! I have added the wave sort array program to the issue "Adding new programs and their solutions. #70"...I have created the folder Wave_Sort_Array inside the array folder in the repo and within that folder, I have included one c++ source code file and the README.md file describing the working of the code. Please if you like my code then please merge my PR to your repo. Thank you.

    needs-fixing 
    opened by anuragnewbie 4
  • code for operations on Binary search tree.

    code for operations on Binary search tree.

    Is your feature request related to a problem? Please describe. I wanted to add code for BST - insertion, deletion, traversal, mirror images, height etc.

    Describe the solution you'd like I will add code for this problem statement. The code is completely written by me.

    Describe alternatives you've considered I will add comment for understanding.

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

    good first issue 
    opened by shinchancode 4
  • Fix 'Redundant blank line at the start of a code block should be deleted.' issue in Array\First Repeating Element\solution.cpp

    Fix 'Redundant blank line at the start of a code block should be deleted.' issue in Array\First Repeating Element\solution.cpp

    opened by skully-coder 4
  • Fix 'Redundant blank line at the start of a code block should be deleted.' issue in String\String Rotation\stringsarerotation.cpp

    Fix 'Redundant blank line at the start of a code block should be deleted.' issue in String\String Rotation\stringsarerotation.cpp

    opened by skully-coder 4
  • KMP & RabinKarp in Strings

    KMP & RabinKarp in Strings

    Added the following Pattern Matching Algorithms in Strings: 1. KMP Algorithm 2. Rabin Karp Algorithm Created a folder named Pattern-Matching and added the two programs. File format and language used : C++.

    Type of change

    Please delete options that are not relevant.

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [X] New feature/code (non-breaking change which adds functionality)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [ ] This change requires a documentation update

    Checks

    • [X] Solution file
    • [X] README.md added
    • [ ] README.md already exists

    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 made corresponding changes to the documentation
    • [X] My changes generate no new warnings
    • [X] I have added tests that prove my fix is effective or that my feature works
    no-pr-activity 
    opened by pranavsuriya-sr 2
  • Looking for Questions in Company Interviews

    Looking for Questions in Company Interviews

    I am looking for questions which were previously asked in interviews or online tests of companies in their hiring process. It can be any company and problems can be in any language. If you want this issue to be assigned, comment on this issue.

    good first issue no-issue-activity hacktoberfest-2022 
    opened by skully-coder 11
Competitive Programming Problem Set

Competitive Programming Problem Set Please press ⭐ button if you like this repo ❤ . Your supports will encourage me a lot and help me put more my time

Tan Huynh 2 Jan 27, 2022
Collection of all the LeetCode problem solutions using different programming languages.

LeetCode Solutions Collection of all the LeetCode problem solutions using different programming languages. To contribute, you can make a file for the

Jay Patel 34 Sep 2, 2022
A collection of basic data structures syntaxes, useful for competitive coding and placement exams

Data-Structures A collection of basic data structures syntaxes, useful for competitive coding and placement exams 1. Array 2. Matrix 3. Linked List Si

MAINAK CHAUDHURI 2 Aug 8, 2021
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
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
Leetcode solutions in C++ for coding interviews.

LeetCode Solutions This repository will consist solutions focusing on the concepts of DataStructures and Algorithms. Daily updates! Please come back a

Meghna Srivastava 4 May 17, 2022
Leetcode solutions collection

Leetcode Questions This repository aims to have solutions to all Leetcode Questions that are available for free. List Of Questions The list of all que

Aman Verma 15 Apr 3, 2022
My solutions to problems of Global Coding Challenge 2021

Global Coding Challenge 2021 Organized by Credit Suisse This repo contains all the problems of the competition and solutions to them submitted by bpan

Bibek Panthi 1 Nov 7, 2021
Solutions of assignments, problems of DSA bootcamp in C++ by Kunal kushwaha OR Community Classroom

Problem-solution Solutions of assignments, problems of DSA bootcamp in C++ by Kunal kushwaha OR Community Classroom DSA-Bootcamp ?? Assignments ✨ Solu

kapil vaishnav 1 Nov 6, 2021
LeetCode Problems' Solutions

leetcode LeetCode Problems' Solutions # Title Solution Difficulty 6 Remove Duplicates from Sorted List C++ Easy 5 Palindrome Number C++ Easy 4 Median

Sandro 1 Dec 28, 2021
This Repository is based on Striver DSA Sheet problems solved by me for Interview preparation. All solutions are coded in C++ language.

Striver DSA Sheet Striver DSA Sheet Link This Repository is based on Striver DSA Sheet problems solved by me (sometimes with help from different resou

Sayantan Banerjee 13 Nov 11, 2022
Consisting 30 days of Leetcode questions and solutions of November challenge resulting you a badge who all maintain the streak of these 30 Days. Let's earn together

?? 30_Days_OF_LEETCODE ?? ?? This repository contains all the Competitive programming questions and Interview questions. The main aim of this reposito

null 4 Jul 8, 2022
DSA roadmaps and their solutions

Welcome to VITSPOT 2021 DSA Roadmaps and practice Data Structure and Algorithms play a vital role in solving problems and is very crucial thing in a s

VITspot 22 Dec 9, 2022
A fast hash map/hash table (whatever you want to call it) for the C programming language.

C HashMap A fast hash map/hash table (whatever you want to call it) for the C programming language. It can associate a key with a pointer or integer v

Mashpoe 74 Dec 27, 2022
This is a beginner-friendly project aiming to build a problem-set on different data structures and algorithms in different programming languages.

DSAready Overview This is a beginner-friendly project that aims to create a problem-set for various Data Structures and Algorithms. Being a programmer

Riddhi Jain 13 Aug 17, 2022
Templates, algorithms and data structures implemented and collected for programming contests.

Templates, algorithms and data structures implemented and collected for programming contests.

Shahjalal Shohag 2k Jan 2, 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
FEMTIC is a 3-D magnetotelluric inversion code. FEMTIC is made by object-oriented programming with C++.

FEMTIC FEMTIC is a 3-D magnetotelluric inversion code based on the following studies. FEMTIC was made using object-oriented programming with C++. FEMT

Yoshiya Usui 19 Dec 16, 2022