What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-01 07:40:25
hashtable linear probing ,insertion deletion searching
//all the basic opertaion insertion , deletion ,searching,displaying #include <iostream> using namespace std; void init(int arr[],int size) { for(int i=0;i<size;i++) { arr[i]=-1; } } void inserthash(int arr[],int size,int val... Add solution -
C++ 2022-02-06 09:40:26
young physicist codeforces
#include <bits/stdc++.h>using namespace std;#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)#define ll long long#define fi first#define se second#define mp make_pair#define pb push_back#define eb emplace_backll gcd(ll a,ll b){ i... Add solution -
C++ 2021-10-28 17:52:04
C++ append into empy array
#include <iostream> #include <cmath> using namespace std; void Shop(int); int Gold = 10; int HealthPotion = 0; int ManaPotion = 0; int Choice; string Inventory[5]; int main(){ cout << "You are in the shop. What would you lik... Add solution -
Other 2021-10-26 08:37:14
app script comparison existing data
function getNewData() { //deleting triggers var triggers = ScriptApp.getProjectTriggers(); for (var i = 0; i < triggers.length; i++) { if (triggers[i].getHandlerFunction()=='getNewData'){ ScriptApp.deleteTrigger(triggers[i]); } ... Add solution -
Python 2021-10-24 03:44:08
x and y in python
x = 10 y = 12 # Output: x > y is False print('x > y is',x>y) # Output: x < y is True print('x < y is',x<y) # Output: x == y is False print('x == y is',x==y) # Output: x != y is True print('x != y is',x!=y) # Output: x >= y is Fal... Add solution -
Other 2021-10-23 00:22:09
find consecutives
var findMaxConsecutiveOnes = function (arr, number) { //check for boundries if(!number || !arr.length) return; // maximum number of consectuives let max = 0; // count homy many consecutives before it ends (why it's 1 ? because a lonely numbe... Add solution -