#coding
Read more stories on Hashnode
Articles with this tag
Given two integers L, R, and digit X. Find the number of occurrences of X in all the numbers in the range (L, R) excluding L and R. Example...
There is a robot starting at the position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0)...
You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character can only be...
A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the...
You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the second half. Two...
Problem Link: https://leetcode.com/problems/reverse-prefix-of-word/description/ Given a 0-indexed string word and a character ch, reverse the segment...