What do you want to save?
Add Code snippet
New code examples
-
C# 2022-02-12 07:15:32
c# only letters
bool result = input.All(Char.IsLetter); bool result = input.All(Char.IsLetterOrDigit); bool result = input.All(c=>Char.IsLetterOrDigit(c) || c=='_'); // Instantiate random number generator. private readonly Random _random = new Random(); // G... Add solution -
C++ 2022-02-12 03:45:02
how to search integer in c++
//******************************************************** // search algorithm for arrays //******************************************************** #include <iostream> using namespace std; void initializeArray(int list[], int listSize); int ... Add solution -
Other 2022-02-03 11:36:54
maximum number from Array
---without sort method--- public static int maxValue( int[] n ) { int max = Integer.MIN_VALUE; for(int each: n) if(each > max) max = each; return max; ---with sort method--- public static int maxValue( int[] n ) { Arrays.sort( n ); return... Add solution -
-
Python 2022-02-02 23:57:32
Project Euler #254: Sums of Digit Factorials
#include "fmt/format.h" #include "fmt/ostream.h" #include <NTL/ZZ.h> #include "bitset.h" using namespace std; using namespace fmt; using namespace NTL; namespace PE254 { const int MAX_LENGTH = 18, MAX_SUM = 150, MO... Add solution -
Java 2022-01-28 20:37:10
find the largest and smallest number in an unsorted integer array in Java
public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Number of integers to enter:"); int numberEnter = keyboard.nextInt(); int numbers[] = new int[numberEnter]; int pos = 0; ... Add solution