#string
Read more stories on Hashnode
Articles with this tag
You are given a string s. Your task is to remove all digits by doing this operation repeatedly: Delete the first digit and the closest non-digit...
Given a string s, return true if s is a good string, or false otherwise. A string s is good if all the characters that appear in s have the same...
International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: 'a' maps to ".-", 'b'...
Given two binary strings a and b, return their sum as a binary string. LeetCode Problem - 67 import java.math.BigInteger; class Solution { //...
Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and right...
Given an integer array nums that does not contain any zeros, find the largest positive integer k such that -k also exists in the array. Return the...