Programs
Programs
Palindrome Check: Write a function to determine if a given string is a palindrome (reads the same
forward and backward).
FizzBuzz: Write a program that prints the numbers from 1 to 100. But for multiples of three print
"Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are
multiples of both three and five print "FizzBuzz".
Find Maximum Subarray Sum: Given an array of integers, find the contiguous subarray with the
maximum sum.
Binary Search Tree Validation: Write a function to check if a binary tree is a valid binary search tree.
Linked List Cycle Detection: Given a linked list, determine if it has a cycle in it.
Two Sum: Given an array of integers, return indices of the two numbers such that they add up to a
specific target.
Longest Common Subsequence: Given two strings, find the length of the longest subsequence
present in both of them.
Write a C function to find the first and last occurrence of a specific element in a sorted array using
binary search. Return the indices of both occurrences.
Implement a C function to search for a target element in a rotated sorted array. The array may have
been rotated at an unknown pivot.
Write a Program identify Max length of a substring from a given string and also the substring should
be palindrome
Write a Program to find a second max in the give list? and Time Complexity