Given an integer array arr[] a non negative integer k, print k-th distinct element in an array. The given array may contain duplicates and the output should print k-th distinct element among Read more →
Data Structures
5 postsProgramming is all about data structures and algorithms. Data structures are used to hold data while algorithms are used to solve the problem using that data. Data structures and algorithms (DSA) goes Read more →
Dynamix array is also known as Vector, Dynamic array is an array that resizes itself up or down depending on the number of content. Linked lists have both advantages and disadvantages. The Read more →
Given a doubly linked list containing N nodes, the task is to delete all the odd nodes from the list. Examples : Input: Initial List = 14 15 5 6 16 Output: Read more →
Array is collection of items having same data type stored in contiguous memory location. An array is derived data type in C programming language which can store similar types of data in Read more →
Queue is an ordered list in which all insertions at one end called REAR and deletions are made at another end called FRONT. Queues are sometimes referred to as First In First Read more →
Prerequisite – Introduction to C programming language, Variables in C Variable is named location of data. In other words, variable is container of data. In real world we have used various type Read more →