Hashing

Non-repeating character in a string
AskAI

This problem is about finding the first non-repeating character in a string. For example, if the input string is "GeeksforGeeks", then the output should be 'f '.

First non-repeating character in a string
AskAI

This problem asks us to find the first non-repeating character in a given string. For example, if the string is "GeeksforGeeks", then the first non-repe ating character is 'f'.

Implementing a Hash Table with Separate Chaining
AskAI

This problem asks you to implement a hash table with separate chaining. This means that when a key is hashed, it is stored in a linked list at the corresponding index in the hash table.

Determining if an Array Contains Duplicates
AskAI

This problem asks you to write a function that takes in an array of integers and returns true if any element appears more than once in the array. Otherwise, the function should return false.

TwoSum: Given an array of integers, return the indices of the two numbers...
AskAI

This problem is asking for the indices of two numbers in an array that add up to a given target. For example, if the array is [2, 7, 11, 15] and the target is 9, the solution would be [0, 1] because 2 + 7 = 9.

Two Sum
AskAI

Given an array of integers and a target value, return the indices of the two numbers in the array that add up to the target value.

Determining if a string is a permutation of a palindrome
AskAI

This problem asks whether a given string is a permutation of a palindrome. That is, whether the string can be rearranged into a palindrome. For example, the string "taco cat" is a permutation of a palindrome, because it can be rearranged into the palindrome "tacocat". The input string is given as "Tact Coa". The output should be True, because there are permutations of the input string that are palindromes, such as "atco cta".

Check if a Linked List is a Palindrome
AskAI

This function checks whether a given linked list is a palindrome. If the linked list is 1 -> 2 -> 3 -> 2 -> 1, the function will return True.