C
Array
Data-structure
- The average of 10 numbers using Array
- You are given two matrices of dimensions N x N, filled with integers
- Calculate the sum of array elements by passing to a function
- count a total number of duplicate elements in the array using function
- Calculate sum of all elements of an array using pointers as arguments
- Add array element
- Delete elements from Array
- Display humidity
- Second Highest number in Array
C
Array
Data-structure
- Take an 1D array of size n. It contains names of students in a class. Print the names in separated lines
- Delete duplicate elements in Array
- Perform multiplication of two polynomial using arrays
- Perform right shift operation by n on an 1D array of size m. For example say, A[5] = {1,2,3,4,5}. If we are right shifting the elements by 3 then the output will be {4,5,1,2,3}
- A is a square matrix of dimension nxn. ‘n’ is user input. Calculate the value of the following equation A2 A I
- Take a 2D array of size 2Xn. 1st row contains the roll numbers and 2nd row contains corresponding marks in exam. 'n' is the number of students here. Now sort the marks in ascending order along with the roll numbers and
- You have been given an array of n positive numbers. Now print the same array of n length but here every index will contain the sum of all the elements in the array except the element on that index. For example a[i] = a[0] a[1] …. a[i-1] a[i 1] … a[n-1]
- Check whether a matrix of nXm size is sparse or not
- Transpose of a matrix
Python
basics
- Python program to get the volume of a sphere with radius 6. Take pi=3.14
- even or odd
- area of a circle
- height of a triangle and compute the area
- subtract the smaller number from the larger number
- Take the name, age and address as user input
- Write a Python program to solve (x y) * (x y)
- convert seconds to day, hour, minutes and second
- Sort three integers using conditional statements
Python
mid-level
- Take a number n as input and print the sum of all n natural numbers using for loop
- Take a number n as input and check whether it is palindrome or not
- Take a number n as user input. Find its square root
- Print the numbers that are divisible by both 3 and 7 in the range 1 to n. take n as user input
- Print the factorial of n. Take n as user input
- Armstrong or not
- prime or not
- print all factors
C
Data-structure
Pro
- You have set of numbers stores in a linked list. Take another number n as user input and insert the element in a position in the linked list. the position of insetion is also given by the user
- Take a linked list as user input. Copy all the unique elements from that linked list into another new linked list
- Add two given polynomil using linked list
- Multiply two given polynomial using linked list
- You have a set of numbers stored in a linked list. Find the sum of all numbers in even positions in a linked list
- You have a set of elements stored in a linked lsit. Delete all the odd numbers from the linked list
- You have two linked lists given. Merge them into a single list
- Sort the list using bubble sort
Python
mid-level
- Write program to find the prime numbers in a range using function
- Take n as input and check which ones are Armstrong number using a function in the range 1 to n
- Write a function to calculate GCD of two numbers and then call the function to get GCD of 4 numbers
- Take a paragraph as input and then replace all the “the” word with “THE”
- Take a paragraph as input and then check whether a specific word is present in the paragraph or not. the word also should be user input
- Take a paragraph as input and then delete all the white spaces at the beginning and the end of the paragraph
- Take a sentence as input. Take two integer numbers as input. Print the substring starting and ending at the positions same as those numbers
- Given 2 strings, str1, and str2 return a new string made of the first, middle and last char of each of the input strings. characters from the 1st srting will be in lowercase and characters from the 2nd srting will be in uppercase
C
mid-level
Linked list
- insert an element in a specific position in doubly linked list
- Delete an element from a given position in doubly linked list
- Insert at the beginning and at the end of a doubly linked list
- Insert elements at the end and the beginning of a circular linked list
- delete an element from a given position in cicular linked list
- Given two sorted doubly linked lists. Merge them into a single one without creating any new node
- Reverse a circular linked list
- Given a circular linked list. Split it into two separate circular linked lists without creating new nodes. One will contain all the odd numbers. Another one will contain all the even numbers.
Python
mid-level
- create a list having the name,age,salary and address of a person. enter name,age,salary and address as input.
- take a string as input. use negative slicing to print a substing
- given a list in python. delete the element of a given position
- given a list of elements. find the maximum and minimum of the list using library fucntion
- create a list of tuples.
- given a string. convert it into a tuple
- concatinate 3 given tuples
- given a tuple. find the sum of its elements
- given a tuple. print its element in between a range