daily pastebin goal
47%
SHARE
TWEET

project

a guest Feb 16th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static string unary_encode(int n)
  2.         {
  3.             string s = "";
  4.             while (n>0)
  5.             {
  6.                 s += "0";
  7.                 --n;
  8.             }
  9.  
  10.             s += "1";
  11.             return   s;
  12.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top