What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-26 21:56:02
how to make a selection sort C++
void selectionSort(int array[], int size) { int minIndex, minValue; for (int start = 0; start < (size - 1); start++) { minIndex = start; minValue = array[start]; for (int index = start + 1; index < size; index++) { if (array[index] &l... Add solution -
Other 2021-09-26 21:14:06
putarray sharedpreferences
public static void loadArray(Context mContext) { SharedPreferences mSharedPreference1 = PreferenceManager.getDefaultSharedPreferences(mContext); sKey.clear(); int size = mSharedPreference1.getInt("Status_size", 0); for(int... Add solution -
C 2021-09-24 23:10:06
array value from user c
#include <stdio.h> int main(void) { int size, i; printf("Enter the size of the arrays:\n"); scanf("%d", &size); int arr1[size]; printf("Enter the elements of the array:\n"); for (i = 0; i < size; i++) { scan... Add solution -
Other 2021-09-23 11:55:02
how to send values to a selection sorting function
1 // Fig. 8.15: fig08_15.cpp 2 // This program puts values into an array, sorts the values into 3 // ascending order and prints the resulting array. 4 #include <iostream> 5 using std::cout; 6 using std::endl; 7 8 #include <iomanip&... Add solution -
Java 2021-09-21 03:56:01
picasso circle transformation android
import com.squareup.picasso.Transformation; public class CircleTransform implements Transformation { @Override public Bitmap transform(Bitmap source) { int size = Math.min(source.getWidth(), source.getHeight()); int x = (source.g... Add solution -
Java 2021-09-20 10:15:02
arraylist length
import java.util.ArrayList; /* * Java Program to find the length of ArrayList. * */ public class ArrayListDemo{ public static void main(String[] args) { System.out.println("Welcome to Java Program to find the length of array list"); ... Add solution -
C 2021-09-18 00:40:03
huffman coding using heap in c
// Huffman Coding in C #include <stdio.h> #include <stdlib.h> #define MAX_TREE_HT 50 struct MinHNode { char item; unsigned freq; struct MinHNode *left, *right; }; struct MinHeap { unsigned size; unsigned capacity; struct MinHNo... Add solution -
Java 2021-09-17 06:03:04
java convert string to int array
import java.util.Arrays; public class StringToIntegerArray { public static void main(String args[]) { String [] str = {"123", "345", "437", "894"}; int size = str.length; int [] arr = new int [s... Add solution
Best helpers
Kyle Smith
+5
JSanchez
+5
Larapsodia
+5
TJG
+5
Sharma Pocso
+5
Wilber82
+5
T-rex
+5
Seria Yin
+5
Winny
+5
Jlund3
+5
Laura Stiehl
+5
Sikku
+5
AlecPerkey
+5
The Alpha
+5
IQAndreas
+5
TeacherSue
+5
Doe John
+5
Wayno
+5