View Code? Open in Web Editor
NEW
A One Stop Place to find many useful Snippets for competitive programming
C++ 54.01%
Python 12.21%
JavaScript 7.58%
Java 7.13%
C 19.07%
cp_snippets's Introduction
๐ญ Iโm currently working on blockchains
๐ฑ Iโm currently learning cryptography
โก Fun fact: I love reading books
cp_snippets's People
Watchers
cp_snippets's Issues
The snippet will help one to check for the graph if it is a bipartite graph or not. It will be in C language
The filename will be: BinarySearch.py
language: python
Description:
A function that returns the index of an element in an array using the binary search method. If the element is not present, -1 is returned.
In this C++ Programming, we will perform Swapping of 2 Variables using 3rd Variable in C++. The third variable will act as a temporary variable to perform the swapping.
File name: CountDigits.py
language: python
description:
A function that returns the count of digits in a number.
Hello
I want to add Dutch Flag algorithm to solve this problem .
Please assign this task to me.
This program converts from Fahrenheit To Celsius in C++.
This program will help user to detect cycle in graph. Written in C language and falls under C/Data Structure folder
File name: bubble.cpp
Language: C++
Description:
C++ program to implement bubble sort.
Please assign me this so that I can make a PR.
HEY!
I want to add a C++ program to calculate the third side of the right-angled triangle using the Pythagoras theorem.
Please assign me this.
Thank you!
A C++ program that outputs the number that is repeated odd number of times in an array. The algorithm has O(n) time complexity and O(1) space complexity.
What is Stack? ๐ป
A Stack is a linear data structure that follows the LIFO (Last-In-First-Out) principle.
What does the program do? ๐ค
This program will do the following tasks:
๐ผ Push - Insert element at the top of the list
๐ฝ Pop - Delete element at the top of the list
๐จ๏ธ Display Stack Top - Display the element on the top of stack
โ Exit - Quit the user defined loop
Hey!
I want to add a C++ program to check input is palindrome or not.
Please assign me this.
Thank you!
Hello,
I want to add Kadane Algorithm in C++
Please assign me this.
Thank you!
Hello,
I want to add Binary Search in C++
Please assign me this.
Thank you!
The snippet sorts an array of number using Insertion Sort
Hello,
I want to add Queue Operations- Insert, delete and display using array in C++
Please assign me this.
Thank you!
Hello!
I want to add the program for Heap Sort in C++.
Please assign me this.
Thank you!
File name: DecimaltoBinary.cpp
Language: C++
Description:
A function that returns binary representation of number eg- For 9 - 1001.
Hello,
I want to add Insertion Sort in C++
Please assign me this.
Thank you!
Hello,
I want to add Circular Linked List and its operations in C++
Please assign me this.
Thank you!
The following code snippet performs Quick Sort on an array of numbers
Hey @Rasesh2005 Please assign me this issue so that i can add a cyclic sort program in your repository.
Hello,
I want to add code for finding the most occurring element in an array of integers in C++
Please assign me this.
Thank you!
Hey!
I want to add a program that can Convert Days Into Years, Weeks, and Days in C++.
Please assign me this issue.
Thank you!
Adding program for left rotation of array. (shifting of the elements in an array towards the left) in C++
Please assign this to me.
Thank you!
I want to add the program for: Given an array of integers which represents the preorder traversal of a Binary Search Tree . Construct the BST and return its root.
Please assign me this.
Hello!
I want to add the program for Shell Sort in C++.
Please assign me this.
Thank you!
You have to write a program that will find the depth or the path till the deepest node of binary tree.
A C++ program that outputs the number that is repeated odd number of times in an array. The algorithm has O(n) time complexity and O(1) space complexity.
File name: PrimeSieve.cpp
Language: C++
Description:
C++ program to print all primes smaller than or equal to n using Sieve of Eratosthenes