Count Good Triplets in an Array
Given two arrays nums1 and nums2 of the same length, count the number of good triplets. A triplet (x, y, z) is good if it satisfies the following conditions:
pos1x < pos1y < pos1z pos2x < pos2y < pos2z Write a function to count the number of good triplets in the given arrays.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)