Is there an equivalent version of std::find(first, last) but for a std::map? I.e., is there a version of std::map's find method that searches for an element in a map, but restricting the search only to a specified [first, last) range? Ideally, the solution should be logarithmic in the size of...

## Counting elements “less than x” in an array

Let's say you want to find the first occurrence of a value1 in a sorted array. For small arrays (where things like binary search don't pay off), you can achieve this by simply counting the number of values less than that value: the result is the index you are after.

## Given a list of words and a sentence find all words that appear in the sentence either in whole or as a substring

ProblemGiven a list of string find the strings from the list that appear in the given text. Example 'red' because it has 'shared' has 'red' as a substring

## Python – Searching multiple values in list and performing multiple operations

I'm trying to search a list I have for specific values and if any of those values exist in the list, I would like to perform a different operation.

## O(NlogN) algorithm runs faster than O(n)… wait, what?

I am a bit confused, to be honest. I was working out the one of the classical algorithm problems. Given a collection of integers, find if are there 2 elements summing to a given number.

## Python: Extracting lists from list with module or regular expression

I'm trying to extract lists/sublists from one bigger integer-list with Python2.7 by using start- and end-patterns. I would like to do it with a function, but I cant find a library, algorithm or a regular expression for solving this problem.