# All Medium Articles Basic Easy Medium Hard Expert All Categories Arrays Misc Program Output Strings Linked List Bit Magic Articles Tree MCQ GFacts Interview Experiences GBlog Stack Queue Algorithms Analysis Dynamic Programming Greedy Backtracking Pattern Searching Divide and Conquer Searching Sorting Mathematical Geometric Heap Hash Randomized Combinatorial Matrix Binary Search Tree Advanced Data Structure Project Technical Scripter Python Competitive Programming Internship Experienced TechTips Geek on the Top Branch and Bound Game Theory Computer Subject Computer Networks Operating Systems DBMS GATE CS Programming Language SQL Java Compiler Design Recursion Puzzles C C++ Data Structures Graph School Programming Design Pattern Articles Placements QA – Placements Reasoning – Placements English – Placements CS – Placements DI – Placements Quizzes Aptitude Web technologies Questions Engineering Mathematics Questions Python-Quizzes QA – Placement Quizzes C Quiz C++ Quiz Java Quiz GATE Operating Systems Questions DBMS Quiz Computer Networks Quiz Data Structures Algorithms Quiz Compiler Design Computer Organization and Architecture Theory of Computation Digital Electronics & Logic Design Theory of Computation & Automata Computer Organization & Architecture Engineering Mathematics Difference Between Advanced Computer Subject C Programs C++ Programs Java Programs Python Programs Web Technologies JavaScript Linux-Unix GeeksforGeeks Initiatives ISRO UGC-NET Software Engineering C# Perl Ruby PHP JS++ PHP Programs Machine Learning C# Programs Scala Hadoop Go Language HTML

## Python Program to Reverse a linked list 3

Given pointer to the head node of a linked list, the task is to reverse the linked list. We need to reverse the list by… Read More »

## Write an Efficient C Program to Reverse Bits of a Number 3.6

Given an unsigned integer, reverse all bits of it and return the number with reversed bits. Input : n = 1 Output : 2147483648 On… Read More »

## Write a program to print all permutations of a given string 3.4

A permutation, also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with… Read More »

## C Program to print all permutations of a given string 3

A permutation, also called an “arrangement number” or “order, ” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence… Read More »

## Let’s experiment with Networking 3

Most of us have studied Computer Networks in a very abstract manner. In other words, not many of us know how the abstract concepts of… Read More »

## Ugly Numbers 3.3

Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12,… Read More »

## Output of C Programs | Set 4 3.2

Predict the output of below programs Question 1 filter_none edit close play_arrow link brightness_4 code #include‹stdio.h› int main() {     struct site     {         char name[] =… Read More »

## Change/add only one character and print ‘*’ exactly 20 times 3.2

In the below code, change/add only one character and print ‘*’ exactly 20 times. int main() { int i, n = 20; for (i =… Read More »

## Power Set 3

Power Set Power set P(S) of a set S is the set of all subsets of S. For example S = {a, b, c} then… Read More »

## Implement Your Own sizeof 3.1

Here is an implementation. filter_none edit close play_arrow link brightness_4 code #define my_sizeof(type) (char *)(&type+1)-(char*)(&type) int main() {     double x;     printf(“%d”, my_sizeof(x));     getchar();     return 0;… Read More »

## Program to find parity 3.2

Parity: Parity of a number refers to whether it contains an odd or even number of 1-bits. The number has “odd parity”, if it contains… Read More »

## Write an Efficient Method to Check if a Number is Multiple of 3 3.4

The very first solution that comes to our mind is the one that we learned in school. If sum of digits in a number is… Read More »

## Smallest power of 2 greater than or equal to n 3.1

Write a function that, for a given no n, finds a number p which is greater than or equal to n and is a smallest… Read More »