Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: linked-list

Arrays

Doubly Linked List – Array Implementation

admin March 16, 2021

I have just started to study data structures, and I need to understand doubly-linked list, which is implemented by 3 arrays – Data, Next, Prev. I want to implement delete function, which receives a …

arraylistarraysdata-structuresdoubly-linked-listlinked-list
Linux

Problem in sorting alphabetically a linked list in C

admin December 13, 2019

i’m trying to sort alphabetically a linked list in C. The linked list i used is the following: struct lineList{ //structure with all the line of the input file char *line; struct lineList *…

clinked-listlinuxsortingstruct
Linux

Add syscalls to linux kernel

admin April 5, 2018

I’m new in working with kernel. I want to add a linked list to my kernel, and I try to fix it like this link : Linux Kernel Programming–Linked List here is code’s that I added to sys.c : syscall …

ckernellinked-listlinuxlinux-kernel
Arrays

Information not actually being stored inside array of nodes

admin September 20, 2017

node* nodeArray[1000]; for (int j = 0; j < 1000; j++){ nodeArray[j] = new node; } int nodeCounter = 0; string temporary = ""; string cont; //file content int i = 0; while (getline(fileObject, cont)...

arrayscdoubly-linked-listlinked-list
Arrays

reading a char array inside a linked list node?

admin December 1, 2016

I’m trying to build a Binary search tree using linked list. so my struct for my linked list is: typedef struct node{ char english[20]; char span[60]; struct node *left; struct node *…

arraysbinary-search-treeccharlinked-list
Arrays

Stack ADT (Abstract Data Type) implementation- Array vs linked

admin November 18, 2015

What are the pros and cons of implementing Stack based on array vs linked. From my limited knowledge i feel that linked will always be a better way to implement Stack because: 1) no random acess is …

arrayscollectionsjavalinked-liststack
Arrays

Can anyone help me understand this piece of code?

admin November 1, 2015

Can anyone please help me understand this code? This code is used to solve this problem. You are playing a game on your cellphone. You are given an array of length n, indexed from 0 to n−1. Each …

algorithmarraysjavalinked-list
Arrays

making a pointer that stores an element of a char array

admin March 2, 2015

I’ve been struggling trying to figure out why I am getting the following warning: initialization makes pointer from integer without a cast The highlighted warnings are where I mentioned below. The …

arraysclinked-listpointerstree
Arrays

Initialization array bounds in Ada

admin February 13, 2014

I am having a problem while writing a package for doubly circular linked lists in ada. I am specifically writing a function that will take my DCLL and return the contents of it in array form. In my …

adaarraysjavalinked-listtypes
Arrays

find duplicates in a sorted linkedlist in O(n) time

admin November 10, 2013

Initially, I used Nested, loop which has time complexity of 0(n^2). For more efficient 0(n), solution I wrote the below code and would like to get some help/insight on how to find out if any of the …

arraysjavalinked-listlist

Posts navigation

1 2 Next
Privacy Policy