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
Cob
+5
Nick Rowe
+5
V0ight
+5
Jun Czyrka
+5
AppleFix88
+5
Kapil
+5
Oddthinking
+5
Arttu
+5
Geoffre14
+5
Lvoyster
+5
BuckNaked69
+5
S9527
+5