0% found this document useful (0 votes)
22 views21 pages

Algotithms Data Structures

The document contains a list of 67 topics related to strings with their corresponding levels of difficulty. The topics cover a range of string operations and manipulations including finding length, slicing, replacing characters, appending/removing characters, sorting, formatting, encrypting/decrypting, and other common string processing tasks.

Uploaded by

Sai Hemanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views21 pages

Algotithms Data Structures

The document contains a list of 67 topics related to strings with their corresponding levels of difficulty. The topics cover a range of string operations and manipulations including finding length, slicing, replacing characters, appending/removing characters, sorting, formatting, encrypting/decrypting, and other common string processing tasks.

Uploaded by

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

S.

No Topic Level
1 String L
2 String L
3 String L
4 String M
5 String M
6 String M
7 String M
8 String L
9 String M
10 String L
11 String L
12 String L
13 String L
14 String M
15 String H
16 String H
17 String M
18 String M
19 String L
20 String M
21 String L
22 String M
23 String L
24 String L
25 String M
26 String M
27 String M
28 String M
29 String L
30 String L
31 String L
32 String M
33 String M
34 String M
35 String L
36 String L
37 String M
38 String L
39 String M
40 String M
41 String M
42 String L
43 String M
44 String L
45 String M
46 String L
47 String M
48 String L
49 String L
50 String M
51 String M
52 String H
53 String M
54 String H
55 String M
56 String M
57 String L
58 String L
59 String M
60 String L
61 String M
62 String M
63 String L
64 String M
65 String M
66 String M
67 String M
Description
Length of string
Count characters in string
String slicing
Replace first occurance character
Swapping chars in string
Append chars to string at end
Substring replacement
Length of longest string in python
nth index character from string
First last chars swapping
Remove odd index values
Count words in a string
Upper lower case of a string
Sort unique words alphanumerically
Create html from string
Insert string in middle of speical chars
4 Copies of last 2 chars
Length of first 3 Words or last 3 words
Last part of string
reverses a string if it's length is a multiple of 4
Convert a given string to all uppercase
program to sort a string lexicographically
program to remove a newline in Python
program to check whether a string starts with specified characters
program to create a Caesar encryption
display formatted text (width=50) as output
remove existing indentation from all of the lines in a given text
to add a prefix text to all of the lines in a string
to set the indentation of the first line
to print the following floating numbers upto 2 decimal places
print the following floating numbers upto 2 decimal places with a sign
print the following floating numbers with no decimal places
print the following integers with zeros on the left of specified width
print the following integers with '*' on the right of specified width
to display a number with a comma separator
to format a number with a percentage
to display a number in left, right and center aligned of width 10
to count occurrences of a substring in a string
reverse a string
reverse words in a string
strip a set of characters from a string
count repeated characters in a string
square and cube symbol in the area of a rectangle and volume of a cylinder
print the index of the character in a string
check if a string contains all letters of the alphabet
convert a string in a list
lowercase first n characters in a string
swap comma and dot in a string
count and display the vowels of a given text
split a string on the last occurrence of the delimiter
find the first non-repeating character in given string
print all permutations with given repetition number of given string
find the first repeated character in a given string
find the first repeated character of a given string where the index of first occurrence is smallest
find the first repeated word in a given string
find the second most repeated word in a given string
remove spaces from a given string
move spaces to the front of a given string
find the maximum occurring character in a given string
capitalize first and last letters of each word of a given string
remove duplicate characters of a given string
compute sum of digits of a given string
remove leading zeros from an IP address
Reverse a given string Input : "Python" Output : "nohtyP"
Reverse each word in given string Input
Reverse each word and reverse word again. Input
that accepts a string and calculate the number of digits and letters
Status Time in miComments
Program #Topic Level
1 List L
2 List L
3 List L
4 List L
5 List M
6 List H
7 List L
8 List L
9 List L
10 List H
11 List L
12 List L
13 List M
14 List L
15 List L
16 List M
17 List H
18 List M
19 List L
20 List L
21 List L
22 List L
23 List L
24 List L
25 List L
26 List L
27 List L
28 List L
29 List L
30 List L
31 List L
32 List L
33 List L
34 List L
35 List L
36 List L
37 List L
38 List L
39 List L
40 List L
41 List L
42 List L
43 List L
44 List L
45 List L
46 List L
47 List L
48 List L
49 List L
50 List L
51 List L
52 List L
53 List L
54 List L
55 List L
56 List L
57 List L
58 List L
59 List L
60 List L
61 List L
62 List L
63 List L
64 List L
65 List L
66 List L
67 List L
68 List L
69 List L
70 List L
71 List L
72 List L
73 List L
74 List L
75 List L
Description Time in mi
Sum of elements
Mulitply of elements
Largest number from list
Smallest number from list
Count no of strings whose length is 2
Sort elements in increasing order
Remove duplicates
Check list is empty or not
Clone or copy
Words that are longer than any element
Find common element from 2 lists
Remove specified index from list and print
Write 3D array
Remove even elements and print list
Shuffle list and print
First,Last elements whose square value is between 1 and 30
First,Last elements whose square value is between 1 and 30,except first 5
All permutations of list elements
Difference betweeen 2 lists
To access index of list
List of characters into string
Finding index of an item in specified list
Flatten a shallow
Append a list to second list
Select an item randomly
Check circularly identical in two lists
Finding a second smallest number
Finding a second largest number
Get unique values
Frequency of elements
Counting number elementswithin a specified ranges
Check a list contains sublist
Generate all sublists
Printing elements in ascending order
Create a list by concatenating a given list which range goes from 1 to n
Variable unique identification number
Finding common items from two lists
Change the position of every nth value with (n+1)th value
Converting multiple integers into single integer
Split a list based on first character of word
Create multiple list
Find missing and additional values
Split a list into different variables
Generate group of five consecutive numbers in a list
Convert a pair of values into a sorted unique array
Slect odd items of a list
Insert an element before each element of a list
Print a nested lists (each list on a new line) using the print() function
Convert list to list of dictionaries
Sort a list of nested dictionaries
Split a list every Nth element
Compute the similarity between two lists
Create a list with infinite elements
Concatenate elements of a list
Remove key values pairs from a list of dictionaries
Convert a string to a list
Check if all items of a list is equal to a given string
Replace the last element in a list with another list
Check if the n-th element exists in a given list
Find a tuple, the smallest second index value from a list of tuples
Create a list of empty dictionaries
Print a list of space-separated elements
Insert a given string at the beginning of all items in a list
Iterate over two lists simultaneously
Access dictionary keys element by index
Find the list in a list of lists whose sum of elements is the highest
Find all the values in a list are greater than a specified number
Extend a list without append
Remove duplicates from a list of lists
Get the depth of a dictionary
Check if all dictionaries in a list are empty or not
Two digits m (row) and n (column) as input and generates a two-dimensional array. The element value in the i-th row and j-th
A list contains group of strings.Convert each word to capital letter and print
Reverse list of elements and print in upper case
Write a Python program to convert month name to a number of days
Comments
nt value in the i-th row and j-th column of the array should be i*j
Program # Topic Level
1 Dictionary L
2 Dictionary M
3 Dictionary L
4 Dictionary L
5 Dictionary M
6 Dictionary M
7 Dictionary L
8 Dictionary L
9 Dictionary L
10 Dictionary M
11 Dictionary M
12 Dictionary L
13 Dictionary L
14 Dictionary L
15 Dictionary M
16 Dictionary M
17 Dictionary H
18 Dictionary M
19 Dictionary L
20 Dictionary L
21 Dictionary M
22 Dictionary M
23 Dictionary M
24 Dictionary M
25 Dictionary H
26 Dictionary L
27 Dictionary L
28 Dictionary L
29 Dictionary M
30 Dictionary M
31 Dictionary M
32 Dictionary M
33 Dictionary M
Description
Prints each item and its corresponding type from the following list.
To sort (ascending and descending) a dictionary by value
Add a key to a dictionary
Check if a given key already exists in a dictionary.
Generate and print a dictionary that contains a number (between 1 and n) in the form (x, x*x)
Print a dictionary where the keys are numbers between 1 and 15 (both included) and the values are square of keys
Merge two Python dictionaries
Sum all the items in a dictionary
Multiply all the items in a dictionary
Map two lists into a dictionary
Sort a dictionary by key
Get the maximum and minimum value in a dictionary.
Remove duplicates from Dictionary
Combine two dictionary adding values for common keys.
Print all unique values in a dictionary.
Create and display all combinations of letters, selecting each letter from a different key in a dictionary
Find the highest 3 values in a dictionary.
Combine values in python list of dictionaries.
Create a dictionary from a string.
Print a dictionary in table format.
Count the values associated with key in a dictionary
Convert a list into a nested dictionary of keys.
Sort a list alphabetically in a dictionary.
Remove spaces from dictionary keys.
Get the top three items in a shop.
To get the key, value and item in a dictionary.
print a dictionary line by line.
Check multiple keys exists in a dictionary.
Count number of items in a dictionary value that is a list
Sort Counter by value.
create a dictionary from two lists without losing duplicate values.
Replace dictionary values with their sum.
Match key values in two dictionaries.
Comments
Program #Topic Level Descriptio Time in miComments
1 Tuple L create a tuple.
2 Tuple L create a tuple with different data types
3 Tuple L create a tuple with numbers and print one item
4 Tuple L unpack a tuple in several variables
5 Tuple L add an item in a tuple.
6 Tuple L convert a tuple to a string
7 Tuple L get the 4th element and 4th element from last of a tuple
8 Tuple L create the colon of a tuple
9 Tuple L find the repeated items of a tuple
10 Tuple L check whether an element exists within a tuple
11 Tuple L convert a list to a tuple
12 Tuple L remove an item from a tuple
13 Tuple L slice a tuple
14 Tuple L find the index of an item of a tuple.
15 Tuple L find the length of a tuple
16 Tuple L convert a tuple to a dictionary
17 Tuple L unzip a list of tuples into individual lists.
18 Tuple L reverse a tuple.
19 Tuple L convert a list of tuples into a dictionary
20 Tuple L print a tuple with string formatting
21 Tuple L replace last value of tuples in a list
22 Tuple L to remove an empty tuple(s) from a list of tuples
23 Tuple L sort a tuple by its float element.
24 Tuple M count the elements in a list until an element is a tuple
1 Set L Create a se 10
2 Set L Iteration over sets.
3 Set L Add member(s) in a set.
4 Set L Remove item(s) from set
5 Set L Remove an item from a set if it is present in the set.
6 Set L Create an intersection of sets
7 Set L Create a union of sets
8 Set L Create set difference
9 Set L Create a symmetric difference.
10 Set M Issubset and issuperset.
11 Set M Create a shallow copy of sets.
12 Set L Clear a set.
13 Set M Use of frozensets
14 Set L Find maximum and the minimum value in a set
15 Set L Find the length of a set
1 Arrays L Create an array of 5 integers and display the array items. Access individual element through in
2 Arrays L Append a new item to the end of the array.
3 Arrays L Reverse the order of the items in the array.
4 Arrays M Get the length in bytes of one array item in the internal representation.
5 Arrays M Get the current memory address and the length in elements of the buffer used to hold an arra
6 Arrays M Get the number of occurrences of a specified element in an array
7 Arrays L Append items from inerrable to the end of the array
8 Arrays L Convert an array to an array of machine values and return the bytes representation
9 Arrays L Append items from a specified list.
10 Arrays M Insert a new item before the second element in an existing array.
11 Arrays L Remove a specified item using the index from an array.
12 Arrays M Remove the first occurrence of a specified element from an array.
13 Arrays L Convert an array to an ordinary list with the same items.
s individual element through indexes.

the buffer used to hold an arrays? contents and also find the size
ytes representation
Program S.No
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
20 20
Description
check given word is palindrome or not
print even and odd numbers
print prime numbers
factorial of given number
convert list/tuple/set to list/tuple/set
find cube/square of a number
table of the given number
find the Max of three numbers
fibonacci series?
sum all the numbers in a list
multiply all the numbers in a list
to reverse a string
check whether a number is in a given range
accepts a string and calculate the number of upper case letters and lower case letters
takes a list and returns a new list with unique elements of the first list.
print the even numbers from a given list
print given Pascal's triangle
function to display group of strings
function to check whether a string is a pangram or not
to match the item in two dictionaries.

You might also like