Remove last character from C# string

ans = ans.Remove(ans.Length - 1);

Comments

Popular posts from this blog

Vector in C++

Using SortedDictionary in C#

Modular Inverse in Bigmod