Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Reverse Coding Challenge 1

public class Program 
{	//"A4B5C2" ➞ "AAAABBBBBCC"	
	public static string MysteryFunc(string s) 
    {  string s2 = "";
        for (int i = 0; i < s.Length; i+=2)
        s2 += new string(s[i], int.Parse((s[i+1]).ToString()));
        return s2;
		}
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: How to post request C# with returning responsebody 
Csharp :: mvc session key exists 
Csharp :: how to load file from resources in c# 
Csharp :: how to get the size an array in unity 
Csharp :: Sort ListBox numerically in C# 
Csharp :: c# backup sql 
Csharp :: how to get rid of the slashes in datetime variables c# 
Csharp :: change sprite color unity 
Csharp :: dapper sql builder where 
Csharp :: vb.net remove last comma from string 
Csharp :: Map Range Clamped unity 
Csharp :: c# replace multiple characters 
Csharp :: linked list reverse 
Csharp :: initialize a char array java 
Csharp :: C# Read() and ReadKey() 
Csharp :: c# chunk array linq 
Csharp :: remove last instance of string c# 
Csharp :: shut game unity 
Csharp :: mysql: [Warning] Using a password on the command line interface can be insecure. 
Csharp :: C# int array initial values 
Csharp :: delete all rows from table mvc 
Csharp :: unity deactive all object in list 
Csharp :: vb.net center form in screen 
Csharp :: preprocessors 
Csharp :: how to get the today date in c# 
Csharp :: c# get random between 0 and 1 
Csharp :: predicate EF Core search query 
Csharp :: cross thread exception in c# control 
Csharp :: cdn providers 
Csharp :: unity c# destroy gameobject 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =