Skip to content

Commit 3b8a8a9

Browse files
committed
sll
1 parent 9b87bec commit 3b8a8a9

File tree

5 files changed

+17309
-3
lines changed

5 files changed

+17309
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@
2929
# Executables
3030
*.exe
3131
*.out
32-
*.app
32+
*.app
33+
34+
#Folder
35+
/Videos/redirector.googlevideo.com

LinkedList/SinglyLinkedList.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
/* Class Node */
5+
class Node {
6+
public:
7+
/* value stored in node */
8+
int data;
9+
/* next node address */
10+
Node* next;
11+
12+
Node(int data) {
13+
this->data = data;
14+
this->next = NULL;
15+
}
16+
};
17+
18+
/* Function to insert new node */
19+
void insertNodeAtHead(Node* &head, int d) {
20+
21+
}
22+
23+
int main() {
24+
Node* node1 = new Node(10);
25+
cout << node1->data << endl;
26+
cout << node1->next << endl;
27+
return 0;
28+
}

0 commit comments

Comments
 (0)