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.
- Separate the Numbers
- Discussions
Separate the Numbers
Separate the Numbers
Sort by
recency
|
89 Discussions
|
Please Login in order to post a comment
Logic is to create sequence string from each number s = '99910001001' 91011121314, 99100101102, 99910001001 whichever matches our input string print YES else NO
def separateNumbers(s):
c++. There is no description in the task how big can be that starting element, so I choosed 'long long'. My algo is around O(n logn) or less, idk how to calc. Steps:
this was definitely on the harder side of "easy."
Java 15
Python