All Questions
6 questions
3
votes
1
answer
102
views
Merge discrete integer intervals
What it does
The code starts with a set of integer intervals, and can add new intervals (possibly by updating existing intervals). Essentially, it is a bit array whose index starts at ...
7
votes
5
answers
4k
views
Find number repeated odd times in array
I completed the following exercise:
You are given an array of repeating numbers. All numbers repeat in an even way, except for one. Find that odd occurring number.
...
6
votes
2
answers
2k
views
Battleships Player vs Computer Algorithm
I am a Year 12 student studying CS for my A-Levels. I have had previous Python experience but it is obviously not to professional/industry standard. Therefore, my goal for this review is for my code ...
1
vote
1
answer
126
views
Finding pair in an array with the OO approach
Description:
I am trying to solve algorithmic problems mixing them with Object oriented design as part of my interview preparation. So, the question is given an array of integers find the pair of ...
1
vote
1
answer
151
views
Object-to-array flattening function
I have written a function that is designed to convert an object into an array of key/pair values ("flattening it") like so:
Input
...
8
votes
8
answers
2k
views
Free Code Camp - Pairwise
I'm working through the Free Code Camp syllabus and I'm on to Intermediate JavaScript Algorithms. This Pairwise problem was the last challenge in that section. The section came just after "Object ...