What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-27 21:35:02
code of binary search in python
def binary_search(item_list,item): first = 0 last = len(item_list)-1 found = False while( first<=last and not found): mid = (first + last)//2 if item_list[mid] == item : found = True else: if item < item_list[mid]: last = mid - 1... Add solution -
C++ 2021-08-27 19:49:01
bst traversal code in data structure with c++
#include<iostream> using namespace std; struct node { int data; struct node *left; struct node *right; }; struct node *createNode(int val) { struct node *temp = (struct node *)malloc(sizeof(struct ... Add solution -
-
Shell/Bash 2021-08-27 17:51:01
grpc tools node protoc
GRPC_TOOLS=$(exec grpc_tools_node_protoc) INPUT_DIR="./src/protos" INPUT_DIR_FILE="./src/protos/*.proto" OUTPUT_DIR="./src/typedefs" FIND_FILE=$(find ${OUTPUT_DIR} -name "*.js") PROTOC_GEN_TS_PATH_WINDOWS="./no... Add solution -
Python 2021-08-27 16:13:01
neural network hyperparameter tuning
# random search cross validation in neural network model from keras.models import Sequential from keras.layers import Dense, Dropout from keras.wrappers.scikit_learn import KerasClassifier def report(results, n_top=3): for i in range(1, n_top + 1): ... Add solution -
Shell/Bash 2021-08-27 14:23:02
install jenkins on ubuntu
## Install java sudo apt update && sudo apt install openjdk-8-jdk -y ## Install Jenkins wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > ... Add solution -
Java 2021-08-27 12:56:02
Java program to convert decimal number to binary & count number of 1s
// decimal to binary conversion in java import java.util.Scanner; public class DecimalBinaryDemo { public static void main(String[] args) { int number, count = 0, temp; String strConvert = ""; Scanner sc = new Scanner(Sys... Add solution -
C# 2021-08-27 12:19:02
convert table to Csharp class
declare @TableName sysname = 'TableName' declare @Result varchar(max) = 'public class ' + @TableName + ' {' select @Result = @Result + ' public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } ' from ( select replace(co... Add solution -