What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-27 01:16:08
swap nodes algo hackerrank solution
import java.io.*; import java.math.*; import java.text.*; import java.util.*; import java.util.regex.*; public class Solution { /* * Complete the swapNodes function below. */ static class Node { int index; int depth; ... Add solution -
C# 2022-01-26 08:40:54
how to calculate ratio in c#
public string GetRatio(int a, int b) { var gcd = GCD(a, b); return string.Format("{0}:{1}", a / gcd, b / gcd); } public int GCD(int a, int b) { return b == 0 ? Math.Abs(a) : GCD(b, a % b); } // Tomas Pajonk's Answer: public int GCD_(int a,... Add solution -
-
C++ 2022-01-24 17:26:44
static variable in c++
/* this example show where and how static variables are used */ #include <iostream> #include <string> //doing "using namespace std" is generally a bad practice, this is an exception using namespace std; class Player { int health... Add solution -
C# 2022-01-24 02:40:43
how to make a forward jump pad in unity
public class jumpPad : MonoBehaviour { //Can be edited in your inspector. You'll start to notice a difference at Speed = 1000. public int speed; void OnCollisionEnter(Collision other) { //You must assign a tag "Player" ... Add solution
Best helpers
Colocvial
+5
Tjd
+5
Zagi
+5
Tobiak777
+5
Leosar
+5
Sarah witte
+5
Gouri
+5
Gabi Purcaru
+5
Pooria Han
+5
Skry
+5
Mladenka
+5
Yoyo
+5
L. Samson
+5