Hashing

Sum of Integers Hashed to Odd Values
AskAI

The problem asks for a sum of integers that are hashed to odd values. An example input is given, and the expected output is 9.

Two Integers Sum to Target Sum
AskAI

Given a list of integers and a target sum, this problem determines whether any two integers in the list sum to the target sum. For example, given the input [1, 2, 3 , 4, 5] and target sum = 9, the output would be true because 4 + 5 = 9.

Check if a string has all unique characters
AskAI

This problem asks us to write a function that takes in a string and returns True if the string has all unique characters, and False if it does not.

Implement a hash table in Java
AskAI

This problem asks for the implementation of a hash table in Java. The input is a set of keys to be stored in the hash table, and the output is the hash table containing the keys .

First non-repeating character in a string
AskAI

Given a string, this function returns the first non-repeating character in the string. For example, given the input string "abcab", the function would return "c".

Two Sum
AskAI

Given an array of integers, the "Two Sum" problem is to find the indices of two numbers in the array that add up to a given target. There is always a unique solution to this problem.

Determining if a pair of integers in a list sums to a target value
AskAI

This problem asks whether a given list of integers contains a pair of numbers whose sum equals a given target value. For example, if the list is [1, 2, 3, 4, 5] and the target value is 6, the answer would be True (1 + 5 = 6).

Find two numbers in an array that add up to a given target number.
AskAI

This problem can be solved using a hashing approach. We can iterate through the array, adding each element to a hash table. Then, for each element, we can check if there is another element in the array that adds up to the target number. If so, we return the indices of the two numbers.