C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
https://www.sololearn.com/Discuss/2730049/?ref=app
School Exercise :)
Check palindrome number using double linked list in C
Input:
123454321
Output:
123454321 is palindrome
*/
#include <stdio.h>
#include <stdlib.h>
typedef struct node{
short num;
struct node *next;
struct node *prev;
} node;
typedef node* ptrNode;
typedef enum {false,true} bool;
//Init a new Node
ptrNode getNode(short n){
ptrNode newNode = (ptrNode)malloc(sizeof(node));
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run