728x90
728x90
[Java] 1035. Uncrossed Lines - LeetCode Daily Challenge / Dynamic Programing(DP)
코딩테스트/leetcode2023. 5. 12. 06:57[Java] 1035. Uncrossed Lines - LeetCode Daily Challenge / Dynamic Programing(DP)

Uncrossed Lines - LeetCode Can you solve this real interview question? Uncrossed Lines - You are given two integer arrays nums1 and nums2. We write the integers of nums1 and nums2 (in the order they are given) on two separate horizontal lines. We may draw connecting lines: a straigh leetcode.com 풀이 DP배열의 idx의 값은 해당 idx까지 서로 탐색을했을때, 겹치지 않는 최대 경우의 수를 나타낸다. class Solution { public int maxUncrossedL..

728x90
728x90
image