using System.Collections.Generic;
public static double Mean(double[] arr) {
for (int i = 0; i < arr.Length; i++) {
public static string[] IsFourLetters(string[] arr) {
List < string > aux = new List < string > ();
foreach(var item in arr) {
string[] result = aux.ToArray();
Console.WriteLine("[" + String.Join(", ", result) + "]");
public static bool XO(string str) {
for (int i = 0; i < str.Length; i++) {
if (str[i] == 'o' || str[i] == 'O') {
} else if (str[i] == 'x' || str[i] == 'X') {
} else if (cantX > cantO || cantO < cantX) {
public static string ImposterFormula(double n1, double n2)
double imposterProb = 100 * (n1/n2);
return $"{imposterProb}%";
public static string AlphabetSoup(string str)
string[] aux = new string[str.Length];
public static int [] HashPlusCount(string str)
for (int i = 0; i < str.Length; i++)
int[] arr = new int[]{c1, c2};
Console.WriteLine("["+ String.Join(',', arr) + "]");
public static string SpaceMeOut(string str)
for (int i = 0; i < str.Length; i++)
aux = aux + (str[i] + " ");
public static object[] RemoveDups(object[] arr)
List<object> aux = new List<object>();
object[] result = aux.ToArray();
Console.WriteLine("["+String.Join(',', result)+"]");
public static void Main(string[] args) {
double[] aux = new double[] {2,3,2,3,2,3,2,3};
string[] aux2 = new string[] {"Lugo","Tomato","Bear","Pair"};
object[] aux3 = new object[] {1, 2, 3, 2, 3, 1};
Console.WriteLine(SpaceMeOut("space space"));
Console.WriteLine(HashPlusCount("###+"));
Console.WriteLine(AlphabetSoup("edabit"));
Console.WriteLine(ImposterFormula(1,10));
Console.WriteLine(XO("xxxooo"));
Console.WriteLine(XO("xxoxoo"));
Console.WriteLine(Mean(aux));