What do you want to save?
Add Code snippet
New code examples
-
C 2021-10-13 13:54:12
c producer consumer pthread semaphore
/* buffer.h */ typedef int buffer_item; #define BUFFER_SIZE 5 /* main.c */ #include <stdlib.h> #include <stdio.h> #include <pthread.h> #include <semaphore.h> #include "buffer.h" #define RAND_DIVISOR 100000000 #define T... Add solution -
Java 2021-10-13 12:23:10
how to check if an input is an integer java
import java.util.InputMismatchException; import java.util.Scanner; public class Number { public static void main(String[] args) { int yourNumber; while(true) { // to read inputs from user Scanner scan = new Scanner(System.in); ... Add solution -
Python 2021-10-13 03:24:03
binary search algorithm in python code
def binary_search(group, suspect): group.sort() midpoint = len(group)//2 while(True): if(group[midpoint] == suspect): return midpoint if(suspect > group[midpoint]): group = group[midpoint] if(suspect < group[midpo... Add solution -
C++ 2021-09-29 22:08:07
convert c++ to python online
#include "stdafx.h" #include <iostream> #include <Windows.h> #include <time.h> using namespace std; int main() { cout << "===============================================================================" ... Add solution -
Python 2021-09-14 19:54:04
whatsapp spammer script
# Import Selenium module from selenium import webdriver # Paste the address of the chromedriver.exe file in webdriver.Chrome() driver = webdriver.Chrome('C:\\webdrivers\\chromedriver.exe') driver.implicitly_wait(15) # Enter the website in .get() driver.... Add solution -
Java 2021-09-12 15:20:04
java code to play stone paper scissors
import java.util.Scanner; class Stone_Paper_Scissors { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Welcome to Rock, Paper, Scissors!"); while(true) { System.out.print("... Add solution
Best helpers
Ranking is empty