[go: up one dir, main page]

0% found this document useful (0 votes)
11 views15 pages

Simple Codes

The document discusses the concept of palindromes and provides an example of rearranging words in a specific order. It also touches on finding the second largest element in a sequence by comparing indexed elements. The document outlines a method for identifying the largest and second largest numbers in a list.

Uploaded by

karthikamohan474
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)
11 views15 pages

Simple Codes

The document discusses the concept of palindromes and provides an example of rearranging words in a specific order. It also touches on finding the second largest element in a sequence by comparing indexed elements. The document outlines a method for identifying the largest and second largest numbers in a list.

Uploaded by

karthikamohan474
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/ 15

palindrome

input:hi karthika in
hi " " karthika " " in
in " " karthika " " hi

output:in karthika hi
sometimes higest element can be comes last so that we add
second=largest
second=first -> for finding 2nd largest num upto the indexed element
first=num -> for finding largest num upto the indexed element

You might also like