generate functionSat, 12 Nov 2022

sort a list of numbers by their hash value and then compare it with a list of string of the same length

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { List<float> list = new List<float>(); list.Add(1.0f); list.Add(2.0f); list.Add(3.0f); list.Add(4.0f); list.Add(5.0f); list.Add(6.0f); for(int i = 0;i<list.Count;++i) { Console.WriteLine("list[{0}]:{1}",i,list[i]); } List<string> list2 = new List<string>(); list2.Add("hello"); list2.Add("world"); list2.Add("!"); list2.Add("my"); list2.Add

Questions about programming?Chat with your personal AI assistant