You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fibonacci Series - 1. Using loop. 2. Using recursion. 3. Using memoization.(Technique to improve speed of computation by storing complex calculation results)
PrimeNumber- Prime number is number which is only divisible by 1 and itself. eg : 2,3, 5, 7 , 11..
Palindrome - Palindrome is word, number which is same forward and backword. eg 45654,abcba is palindrome eg 45655,abcbb is not palindorme.
Duplicate element in Array - Program to find duplicate element in array in O(n) time and fixed space complexity.
Highest frequency element in array - Program to find highest frequency element in array using two approach with complexity O nlogn and O n .
Remove Duplicate in List -Remove duplicate element from Linked List Given a singly linked list consisting of N nodes. The task is to remove duplicates (nodes with duplicate values) from the given list (if exists)..
Find Nth Element from End -Nth node from end of linked list. Given a linked list consisting of L nodes and given a number N. The task is to find the Nth node from the end of the linked list.
Reverse list in group of given size -Given a linked list of size N. The task is to reverse every k nodes (where k is an input to the function) in the linked list.
Highest frequence In Array -Program to find element in array having highest frequency. Two approaches One * with time complexity O(n log n) and other o(n).
Peek element in Array -Given an array A of integers. The task is to find a peak element in it. An array element is peak if it is not smaller than its neighbors. For corner elements, we need to consider only one neighbor.
ReverseWordInString -Given a String of length N reverse each word in it. Words are separated by dots. " Input : i.like.this.program.very.much Output : i.ekil.siht.margorp.yrev.hcum " .
Special Stack- Design a data-structure SpecialStack (using the STL of stack) that supports all the stack operations like push(), pop(), isEmpty(), isFull() and anadditional operation getMin() which should return minimum element from the SpecialStack. Your task is to complete all the functions, using stack.