Code Problem

"Largest sum of non-adjacent elements in array"
AskAI

Write a function that returns the largest sum of non-adjacent elements in an array.

Reverse the order of words in a string.
AskAI

Given a string, this program will reverse the order of the words.

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 "abcabc", the function would return "d".

Is a Permutation of a Palindrome
AskAI

This function checks if a given string is a permutation of a palindrome. A palindrome is a word or phrase that is the same forwards and backwards. A permutation is a rearrangement of letters.

Find the First Non-Repeated Character in a String
AskAI

This problem asks us to find the first non-repeated character in a given string. For example, if the input string is "GeeksforGeeks", then the output should be 'f'.

Reverse a string.
AskAI

Given a string, reverse its order.

Longest Increasing Subsequence in an Array
AskAI

Given an array of integers, this problem seeks to find the length of the longest increasing subsequence within that array. For example, given the array [0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15], the longest increasing subsequence has length 6: it is 0, 2, 6 , 9, 11, 15.

Longest Increasing Subsequence
AskAI

Given an array of integers, this problem asks to find the length of the longest increasing subsequence in the array. This means that the integers in the subsequence must be in strictly increasing order . There are two examples given, and the solution for each is the length of the longest increasing subsequence in the given array for that example.