Python

Is the given string a pangram?
AskAI

This technical problem asks the user to write a Python function to check if a given string is a pangram or not. A pangram is a word or sentence containing every letter of the alphabet at least once. For example, "The quick brown fox jumps over the lazy dog" is a pangram.

Find the largest sum of consecutive integers in an array.
AskAI

Given an array of integers, this function returns the largest sum of consecutive integers in the array.

Find the indices of two numbers that add up to the target value in a list of...
AskAI

The problem is to find the indices of two numbers in a list of integers that add up to a given target value. An example input would be [2, 7, 11, 15] with a target value of 9, and the expected output would be [0, 1].

Python: Find the First Non-Repeating Element in a List
AskAI

This Python function finds the first non-repeating element in a list of integers. For example, if the input list is [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], the output would be 1.

Sum Even Numbers in List
AskAI

This problem asks the user to write a function that takes in a list of integers and returns the sum of all the even numbers in the list. An example input and output are given.

Find the sum of the integers at even indices in a list.
AskAI

Given a list of integers, this program will find the sum of the integers at even indices. So, for the example input above, the output would be 12 (2 + 4 + 6 ).

Counting Elements in a List
AskAI

The technical problem is to write a Python script to return a dictionary containing the count of each unique integer in a given list. For example, given the list [1, 2, 1, 2, 1, 3, 3, 3, 4, 4, 4, 4], the expected output would be {1: 3, 2: 2, 3: 3, 4: 4}.

Sum of a list of integers in Python
AskAI

This problem asks the reader to write a function that calculates the sum of a list of integers. An example input and output is provided.