Python / Data Structures

Adjacent Integer Sums in Python
AskAI

This problem asks the programmer to write a function that returns the largest sum that can be generated by adding together any two adjacent integers in a given list. An example input and output is given.

finding the longest word made by concatenating other words from a list
AskAI

Given a list of words, this Python program finds the longest word that can be made by concatenating other words from the list. For example, given the input ["cat", "cats ", "dog", "dogs", "pig", "pigs"], the output would be "catsdogspigs".

Summing Elements in an Array
AskAI

This problem asks the programmer to sum the elements of an array of integers. The input is an array of integers and the output is an integer representing the sum of the elements in the array.

Create a function that takes in a list of words and returns a dictionary with...
AskAI

This technical problem involves creating a function that takes in a list of words and returns a dictionary with the words as the keys and the number of times the word appears in the list as the values .

Largest Difference Between Two Adjacent Elements in a List
AskAI

Given a list of integers, the largest difference between any two adjacent elements can be found by using a function. An example input would be [2, 4, 1, 16, 7, 5] and the corresponding output would be 15.

Anagrams in a list of words
AskAI

This problem deals with finding anagrams in a list of words. An anagram is a word that is formed by rearranging the letters of another word. For example, the word ' cats' is an anagram of the word 'cat'. The function should return a list of all the anagrams in the input list. In the example given, the output would be ['cat ', 'cats', 'cud', 'cut'].