0% found this document useful (0 votes)
4 views1 page

Programs

The document outlines various programming tasks including reversing a string, checking for palindromes, implementing FizzBuzz, finding maximum subarray sums, validating binary search trees, detecting cycles in linked lists, and merging intervals. It also includes challenges such as finding the longest common subsequence, searching in sorted arrays, and identifying the maximum length of a palindrome substring. Additionally, it mentions implementing functions for string comparison and displaying words from a string.

Uploaded by

hemamythreya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Programs

The document outlines various programming tasks including reversing a string, checking for palindromes, implementing FizzBuzz, finding maximum subarray sums, validating binary search trees, detecting cycles in linked lists, and merging intervals. It also includes challenges such as finding the longest common subsequence, searching in sorted arrays, and identifying the maximum length of a palindrome substring. Additionally, it mentions implementing functions for string comparison and displaying words from a string.

Uploaded by

hemamythreya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Reverse a String: Write a function that takes a string as input and returns the string reversed.

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.

Merge Intervals: Given a collection of intervals, merge all overlapping intervals.

Reverse Linked List: Reverse a singly linked list.

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 Nth term in a infinite series example: 2,4,8,2,4,8……..n…….infinite

Write a Program identify Max length of a substring from a given string and also the substring should
be palindrome

write a program to display words separated by space

Write a Program to find a second max in the give list? and Time Complexity

Write a program to implement strcmp

You might also like