We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
GCD Matrix
GCD Matrix
+ 0 comments python 3: not solve from test 6 bc exceed time.
# Write your code here appe_list = [] for i in range(r2-r1+1): for j in range(c2-c1+1): appe_list.append(gcd(a[r1+i],b[c1+j])) print(len(set(appe_list)))
+ 0 comments Here is my solution in java, javascript, python, C, C++, Csharp HackerRank GCD Matrix Problem Solution
+ 0 comments Here is GCD matrix problem solution - https://programs.programmingoneonone.com/2021/07/hackerrank-GCD-matrix-problem-solution.html
+ 0 comments If you know about Mobius function and Inclusive-Exclusive Principle, solving this problem is more comfortable !
Load more conversations
Sort 15 Discussions, By:
Please Login in order to post a comment