You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avinash Thakur edited this page Aug 5, 2019
·
1 revision
1.) Rotate an array left by k times and having n number:
algo ——> (i + k)%n
2.) convert an int array to show with “ “ ,
Console.WriteLine(string.Join(" ", Array.ConvertAll<int, string>(new_array,Convert.ToString)));
Or > int[] intArray = Array.ConvertAll(strArray, int.Parse);