//Özel Umut TAM using System; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Linq; public static class Kata { public static string Order(string words) { if(words == ""){return "";} //boşsa tükürem //sözcük sözcük ayıram String[] kifayetsizKelimeler = words.Split(" "); //regEx ile int leri alam. Regex regEx = new Regex(@"\d+"); //Dicktonary kuram KeyVal= word ün içindeki int, Val = word Dictionary Sözlük = new Dictionary(); foreach(String kelime in kifayetsizKelimeler){ int KeyVal = Convert.ToInt32(regEx.Match(kelime).Value); //int i bulam Sözlük.Add(KeyVal,kelime); //GAY } string Output = ""; //Output işte foreach (var keyVeKelime in Sözlük.OrderBy(i => i.Key)) //Key e göre sort ladım listeye ekledim { Output += keyVeKelime.Value + " " ; } Output = Output.Substring(0, Output.Length - 1); // sonda fazladan boşluk var onu silem return Output; } }