79165626

Date: 2024-11-07 08:53:10
Score: 1
Natty:
Report link
void removeLastCharacter() {
  String str = "Something."; // input : "Something."
  String result = str.replaceRange(res.split("").length - 1, null, "");
  print(result); // output: "Something"
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: siva karthikayan