https://github.com/nikitimi/codewars
Pending test for codewars challenge goes here.
https://github.com/nikitimi/codewars
Last synced: about 1 year ago
JSON representation
Pending test for codewars challenge goes here.
- Host: GitHub
- URL: https://github.com/nikitimi/codewars
- Owner: nikitimi
- Created: 2024-09-09T08:52:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T08:57:06.000Z (almost 2 years ago)
- Last Synced: 2024-09-09T10:43:44.757Z (almost 2 years ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Target: Substrings Divisible by Power of 2
Second attempt.
- ✔ Passed Simple and Edge cases.
- ❌ Still having the 15+ length limit.
- ❌ More slower than first attempt.
---
_Thoughts to solve:_
- Use Least Common Multiple (LCM) to break down large number.
First attempt.
- ✔ Passed Simple and Edge cases.
- ❌ Error in 15+ length of string decimal, due to 15 length limit of int, which automatically rounded off over index 15.