Leetcode problem 17 - Merge Strings Alternately
You are given two strings word1 and word2. Merge the strings by adding letters in alternating order, starting with word1. If a string is longer than the othe...
You are given two strings word1 and word2. Merge the strings by adding letters in alternating order, starting with word1. If a string is longer than the othe...
Given two strings s and t, return true if s is a subsequence of t, or false otherwise.
Given an integer array nums, move all 0’s to the end of it while maintaining the relative order of the non-zero elements.
You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots.
Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.