OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Marbles colored string [closed]

  • Thread starter Thread starter farray46
  • Start date Start date
F

farray46

Guest
enter image description here

I check each cutting position and find the largest result. But this is really not optimal I'm thinking another way is two pointers but I'm not really sure what to do yet Does anyone have an optimal idea for this problem? Thank you very much
<p><a href="https://i.sstatic.net/7bQrLXeK.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p>I check each cutting position and find the largest result. But this is really not optimal
I'm thinking another way is two pointers but I'm not really sure what to do yet
Does anyone have an optimal idea for this problem? Thank you very much</p>
 

Latest posts

Top