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

196

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

203

Feb 22
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".

212

Feb 22
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.

192

Feb 21
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'.

183

Feb 21
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.

178

Feb 21
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.

203

Feb 20