Problem solving 40

[LeetCode] 1684. Count the Number of Consistent Strings (Python)

LeetCode - Problems - Algorithms - 1684. Count the Number of Consistent Strings Problem Description You are given a string allowed consisting of distinct characters and an array of strings words. A string is consistent if all characters in the string appear in the string allowed. Return the number of consistent strings in the array words. Example: Constraints: My Solution (Python) class Solution..

[LeetCode] 1365. How Many Numbers Are Smaller Than the Current Number (Python)

LeetCode - Problems - Algorithms - 1365. How Many Numbers Are Smaller Than the Current Number Problem Description Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i] . Return the answer in an array. Example: Constraints: My Solution (Python) cl..