Problem The array “scores” tells the total points for each person involved in a contest. So for example: User A: […]
Tag: search
Get Interval by specific value from List using JAVA 8
Problem First let’s introduce the problem: I have a list like [{10,18}, {19,25}, {26,50}] and i have an input (n), […]
ElasticSearch, Tire – refactor autocomplete method for multiple resources
Problem I am using ElasticSearch and Tire for search in my app across all models. I would like to refactor […]
Excerpt from a brute force Rubik’s Cube algorithm
Problem I have a program that brute force searches for a combination of inputted array elements by the user and […]
A set of names and a request with asterisks
Problem I have a set of names and a request with asterisks. An asterisk can be replaced with any letter. […]
Read CSV files and find the same values on the specific columns
Problem I created a simple command line application to read CSV files in a specific folder and find the same […]
Ruby array search, returning either a result with a good score or the last result
Problem I have an array of hashes, each of which has two attributes: “title” and “Zscore”. I want to return […]
SQL paged search results
Problem I’m trying to figure out a way to simplify implementing paged searching in sql server. My restrictions are: has […]
Efficient Binary Search
Problem My implementation: Array.prototype.binarySearchFast = function(search) { var size = this.length, high = size -1, low = 0; while (high […]
Fastest string search algorithm
Problem I have invented the fastest string search algorithm. Can someone prove that it is not fastest? I am not […]