This is the day-2 problem of the april 30 days coding challenge on leetcode. This is a very interesting problem. I have shown 2 methods for solving this problem. One is by using set and the second is just by using trial and error. CODE LINK will be present below. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
CODE LINK: techdose.co.in...
11 сен 2024