#leetcode
Read more stories on Hashnode
Articles with this tag
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...
Given two string arrays word1 and word2, return true if the two arrays represent the same string, and false otherwise. A string is represented by an...