Remove last character from C# string

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

Comments

Popular posts from this blog

Using SortedDictionary in C#

Vector in C++

Modular Inverse in Bigmod