[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]

A banner for soyjak.party

/tech/ - Soyence and Technology

Download more RAM for your Mac here
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: 1772165695279542.jpg 📥︎ (230.9 KB, 843x1019) ImgOps

 â„–31857[Quote]

modern day coders cant reverse a linked list without ai

 â„–31859[Quote]

I didn't look up the solution but I had to look up what a linked list was because I've never used one. Here is my answer:
Traverse through the whole list following the pointers and and count each jump
malloc the size of the list based on the number of jumps multiplied by the datatype size
traverse backwards and store each element while optionally freeing each old element

 â„–31860[Quote]

>>31859
>I had to look up what a linked list was
bro… we're so cooked.

 â„–31861[Quote]

File: 1776026371015i.mp4 📥︎ (745.7 KB, 496x640) ImgOps

>>31860
They sound retarded and a really good way to fragmentate the shit out of your memory



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]