recursive.codes

recursive.codes

recursive.codes


The Personal Blog of Todd Sharp

Posts tagged 'Brain Teasers'

Brain Teaser:  Calculate Max Stock Profit

Brain Teaser: Calculate Max Stock Profit

I came across an interesting puzzle to solve via interviewcake: Suppose we could access yesterday's stock prices as an array, where:The values are the...

Brain Teaser:  Split An Array Into Equal Parts

Brain Teaser: Split An Array Into Equal Parts

Here's another challenge that I came across recently:Given an array of integers greater than zero, find if it is possible to split it in two (without reordering...

Brain Teaser:  Find The Missing Number

Brain Teaser: Find The Missing Number

When I first saw this challenge I thought it would be a lot more difficult than it turned out to be.  Here is the challenge:Here's a list with numbers...