Found a total of 2 related content
Find the Length of the Longest Common Prefix
Article Introduction:3043. Find the Length of the Longest Common Prefix
Difficulty: Medium
Topics: Array, Hash Table, String, Trie
You are given two arrays with positive integers arr1 and arr2.
A prefix of a positive integer is an integer formed by one or more of its
2024-09-24
comment 0
328
Sum of Prefix Scores of Strings
Article Introduction:2416. Sum of Prefix Scores of Strings
Difficulty: Hard
Topics: Array, String, Trie, Counting
You are given an array words of size n consisting of non-empty strings.
We define the score of a string word as the number of strings words[i] such that
2024-09-26
comment 0
948