Implement a String Copy function in C – which is commonly asked during the coding interview for embeded programming jobs. In C, we use char * to represent the …
You are given a string s and an integer k. Return the number of palindromes you can construct of length k using only letters in s. Letters can be …
Given a string s, return whether it’s a repeating string. Constraints n ≤ 100,000 where n is the length of s Example 1 Input s = “dogdogdog” Output true …
Given a list of strings words, concatenate the strings in camel case format. Example 1 Input words = Output “javaBeans” Example 2 Input words = Output “goNasa” How to …
Given an integer n, return the nth (0-indexed) row of Pascal’s triangle. Pascal’s triangle can be created as follows: In the top row, there is an array of 1. …
Given a string, find the length of the longest substring T that contains at most k distinct characters. Example 1: Input: s = “eceba”, k = 2 Output: 3 …