Day 1 of LeetCode Challenge
Problem 1: Remove Trailing Zeros From a String
link to the problem
class Solution {
public String removeTrailingZeros(String num) {
while(num.length()>1){
if(num.charAt(num.length()-1)=='0')
num = num.substrin...
tusharpant.hashnode.dev2 min read