Open in app

Sign In

Write

Sign In

Bhumika Gupta
Bhumika Gupta

Home

About

Jul 16, 2022

SLL Interview IMP Question (Palindrome Linked List) (Post 2)

Given the head of a singly linked list, return true if it is a palindrome. Example 1: Input: head = [1,2,2,1] Output: true Example 2:

Singly Linked List

2 min read

SLL Interview IMP Question (Palindrome Linked List) (Post 2)
SLL Interview IMP Question (Palindrome Linked List) (Post 2)
Singly Linked List

2 min read


Jul 16, 2022

SLL Interview Question IMP (Reverse a Linked List) with visual explanation (Post1)

Given a linked list, reverse it and return. I/P: 1->2->3->4->5 O/P: 5->4->3->2->1 Explanation: Iterative Approach TC: O(n) SC:O(1) /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0)…

Singly Linked List

2 min read

SLL Interview Question IMP (Reverse a Linked List) with visual explanation (Post1)
SLL Interview Question IMP (Reverse a Linked List) with visual explanation (Post1)
Singly Linked List

2 min read


Jul 16, 2022

Doubly linked list with all the operations

Node class class Node{ public: int data; Node *prev; Node *next; Node(int data){ this->data = data; this->prev = NULL; this->next = NULL; } }; Insert At Head void insertAtHead(Node* &head,int data) { //step:1 Node creation Node* newNode = new Node(data)…

Doubly Linked List

2 min read

Doubly Linked List

2 min read


Jul 16, 2022

Single Linked List basic operations with head and tail

In linked list, we have a node. Each node has one data member, and one Node* next pointer which stores the address of the next node. If there’s no next node then it will have NULL stored. Node: class Node{ public: int data; Node*…

Single Linked List

3 min read

Single Linked List

3 min read


Oct 28, 2020

Dart Tutorial-0: Introduction to Dart(Introduction & Main Method)

Dart is a programming language developed by google. Dart is the language that is used by flutter API and hence, the need to learn dart increases. Installation: For installation refer to the following link-https://dart.dev/get-dart. Main Method In dart, just like c or c++, we are required to write main method…

Dart

1 min read

Dart

1 min read

Dart Tutorial-0: Introduction to Dart(Introduction & Main Method)

Dart is a programming language developed by google. Dart is the language that is used by flutter API and hence, the need to learn dart increases.

Installation:

For installation refer to the following link-https://dart.dev/get-dart.

Main Method

In dart, just like c or c++, we are required to write main method…

--

--

Bhumika Gupta

Bhumika Gupta

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech