What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-20 05:38:11
longest increasing subsequence when elements hae duplicates
#include <iostream> #include <algorithm> using namespace std; // define maximum possible length of X and Y #define N 20 // lookup[i][j] stores the length of LCS of subarray X[0..i-1], Y[0..j-1] int lookup[N][N]; // Functio... Add solution -
Javascript 2021-10-21 02:28:06
5.4.3. else if Statements¶
/*If-else statements allow us to construct two alternative paths. A single condition determines which path will be followed. We can build more complex conditionals using an else if clause. These allow us to add additional conditions and code blocks, wh... Add solution -
Go 2021-10-18 00:36:06
rock paper scissors in golang
package main import ( "fmt" "math/rand" ) func rpsGame() int { won := false turns := 0 for !won { fmt.Println("Rock Paper Scissors") fmt.Println("1=Rock 2=Paper 3=Scissors") fmt.Println("VVV Enter ... Add solution
Best helpers
Mushi.f
+5
Ivan T.
+5
Bianco
+5
Graffito
+5
Mari Yoongi
+5
Tyr
+5
Christophrrb
+5
Vary
+5
Del Findley
+5
Ryan Friend
+5
Millemila
+5
Soumee
+5
Gftern
+5
Davesmiths
+5
Vocaro
+5
Vbence
+5