Python

Python class implementing a stack using a list
AskAI

This Python class implements a stack using a list. The stack supports the following operations: push, pop, size, and isEmpty.

Sum of List Elements
AskAI

This problem is about writing a function that returns the sum of the elements in a list. If the list is empty, the function should return 0.

Finding the Longest Increasing Subsequence in an Array
AskAI

The problem is to find the length of the longest increasing subsequence in an array. For example, given the array [10, 22, 9, 33, 21, 50, 41, 60, 80], the longest increasing subsequence would be of length 6, and would be [10, 22, 33, 50, 60, 80].

Sum of integers divisible by 3 in a list
AskAI

The function should take a list of integers as input and return the sum of the integers in the list that are divisible by 3.

Get page title from URL
AskAI

This technical problem deals with retrieving the page title from a URL using Python. The given URL is http://www.google.com and the expected output is simply "Google".

Sum of Odd Integers in a List
AskAI

Given a list of integers, this function will return the sum of the odd integers in the list.

Return all possible permutations of a list of integers in Python
AskAI

This technical problem deals with finding all possible permutations of a list of integers in Python. An example input would be [1, 2, 3] and the corresponding output would be [[1 , 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1] ].

Sum of elements in a list of integers
AskAI

This technical problem deals with finding the sum of all the elements in a list of integers. An example input would be [1, 2, 3, 4, 5], and the corresponding output would be 15.