Tip 1: Practice at least 250 questions.
Tip 2: Complete at least 2 projects.
Tip 1: Include some projects on your resume.
Tip 2: Do not put false information on your resume.



Consider ARR = [“coding”, ”codezen”, ”codingninja”, ”coders”]
The longest common prefix among all the given strings is “cod” as it is present as a prefix in all strings. Hence, the answer is “cod”.


The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.
I solved this question with the help of stack.



For 'arr' = [ 1, 2, 3, 1, 2]. you need to return 1.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?