What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-09 10:20:03
combination of 1 2 3 4 5 python
a=int(input("Enter first number:")) b=int(input("Enter second number:")) c=int(input("Enter third number:")) d=[] d.append(a) d.append(b) d.append(c) for i in range(0,3): for j in range(0,3): for k in range... Add solution -
Java 2022-03-06 20:45:09
check if optional is empty java
@Test public void givenNull_whenCreatesNullable_thenCorrect() { String name = null; Optional<String> opt = Optional.ofNullable(name); assertFalse(opt.isPresent()); } Add solution -
C++ 2022-03-06 18:00:01
initialize vector of vector c++
#include <iostream> #include <vector> #define M 3 #define N 4 int main() { // specify default value to fill the vector elements int default_value = 1; // first initialize a vector of ints with given default value std::vec... Add solution -
Python 2022-03-06 11:10:04
python permutation
# A Python program to print all permutations using library function from itertools import permutations perm = permutations([1, 2, 3]) for i in list(perm): print (i) # (1, 2, 3) # (1, 3, 2) # (2, 1, 3) # (2, 3, 1) # (3, 1, 2) # (3, 2, 1) Add solution -
C 2022-03-05 12:15:01
what is the usage of extern in c
#include <stdio.h> extern int x = 32; int b = 8; int main() { auto int a = 28; extern int b; printf("The value of auto variable : %d\n", a); printf("The value of extern variables x a... Add solution -
Javascript 2022-03-05 09:00:30
watir webdriver cheatsheet
# start new driver session browser = Watir::Browser.new :firefox browser = Watir::Browser.new :chrome browser = Watir::Browser.new :ie # goto url browser.goto "http://3Qilabs.com" # refresh browser.refresh # close browser.quit Add solution -
TypeScript 2022-03-05 05:45:40
searching filtering ibraries in angular
import * as moment from 'moment'; const now = new Date(); // timeAgo also supports moment.js objectsconst lastWeek = moment().subtract(10, 'days'); Add solution -
Java 2022-03-05 05:40:24
swap items in arraylist java
public class ArrayListExample { public static void main(String[] args) { ArrayList<String> list = new ArrayList<>(Arrays.asList("a", &q... Add solution
Best helpers
Ranking is empty