Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137679 | A vulnerability was detected in code-projects Online Job Portal 1.0. This affects the function GetSQLValueString of the file JobSeeker/SearchJob.php of the component JobSeeker. Performing a manipulation of the argument cmbQual results in sql injection. The attack may be initiated remotely. The exploit is now public and may be used.CVSS 6.5CVE-2026-111315 | The Smaily Connect plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 3.24.0 This is due to the smaily_get_edit_user_id() function reading an attacker-controlled $_GET['user_id'] parameter without performing any ownership or capability check, and then feeding that id into smaily_get_userdata() (which calls get_user_meta()) when rendering the WooCommerce My Account 'edit-account' form via the smaily_print_CVSS 6.4CVE-2026-137713 | Webmin through 2.670 before ae8feb1 allows XSS via an SVG attachment in a mail queue, relevant if an authenticated user uploads an SVG document and an administrator views it.CVSS 6.9CVE-2026-137678 | A security vulnerability has been detected in code-projects Online Job Portal 1.0. Affected by this issue is some unknown functionality of the file Admin/InsertUser.php. Such manipulation of the argument txtUserName/txtPassword leads to sql injection. The attack can be launched remotely. The exploit has been disclosed publicly and may be used.CVSS 5.3CVE-2026-137703 | Flask-AppBuilder before 5.3.1 contains a path traversal vulnerability in ImageManager.save_file that allows authenticated users to write image files outside IMG_UPLOAD_FOLDER via unsanitized multipart filenames. Attackers with add or edit permission on a ModelView with an ImageColumn can upload filenames containing ../ segments to create or overwrite image files like static assets.CVSS 6.1CVE-2026-130039 | The LiteSpeed Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'REQUEST_URI' parameter in all versions up to, and including, 7.9.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Successful exploitation requires comments to be open, a comment author name containinCVSS 6.1CVE-2026-136206 | The Export Products, Orders & Customers for WooCommerce plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'start_date' parameter in all versions up to, and including, 2.4.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link. SucCVSS 9.4CVE-2026-137706 | Smart Portal developed by Direk Tech has a Missing Authorization vulnerability. Authenticated remote attackers can add a specified account to the Active Directory Domain Admins group, thereby obtaining domain administrator privileges.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Competitive Programming Series — Session 3: Linked Lists

After covering the foundations and recursion/backtracking, it's time to study one of the most useful dynamic data structures in competitive programming: the…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
CVE & Threat-Kontext · 10 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

After covering the foundations and recursion/backtracking, it's time to study one of the most useful dynamic data structures in competitive programming: the linked list.



Linked lists are not flashy. They don't offer random access like arrays, and they don't always win on raw speed. But they excel at flexible insertion, deletion, and pointer-based problem solving — and they double as a training ground for the kind of careful, invariant-driven thinking that shows up everywhere else in CP.



Let's build the idea from the ground up.









What Is a Linked List?



A linked list is a linear data structure used to store records, where elements — called nodes — are connected using pointers rather than sitting in contiguous memory.



Each node typically contains:





  • data — the value being stored

  • a pointer to the next node



The last node points to NULL (or nullptr, depending on the language), signalling the end of the list.



Key properties:




  • It can grow or shrink dynamically, without reallocating a whole block of memory

  • It doesn't require contiguous memory — nodes can live anywhere in the heap

  • It trades that flexibility for extra memory spent on pointers






A Real-World Analogy



Think of a treasure hunt. Each clue tells you where to find the next one. You don't need every clue laid out side by side — you just follow the chain, one step at a time. That's the spirit of a linked list.









Why Use a Linked List?



Linked lists shine when:




  • Frequent insertion and deletion are required, especially in the middle of the structure

  • The total size of the data isn't known in advance

  • You want to avoid the cost of shifting elements, which arrays require on insert/delete



Main operations: insert, delete.

Auxiliary operations: delete the full list, count the nodes, get the nth element.









Linked List vs Array



Arrays and linked lists are optimised for different things, and understanding the trade-off is the whole point of learning both.



Array




  • Memory is allocated as one contiguous block

  • Access by index is O(1) — direct memory address calculation

  • Inserting or deleting in the middle costs O(n), because every subsequent element must shift



Dynamic Array (like Python's list or C++'s vector)




  • Expands by allocating a larger block and copying existing elements over

  • Typically grows by a multiplicative factor (often 2×) when full

  • This is the same amortized analysis from Session 1 — most appends are O(1), but a resize is O(n)



Linked List




  • No contiguous memory required — nodes can be scattered across the heap

  • Insertion and deletion are O(1) if you already have a pointer to the right position

  • Accessing a specific element is O(n) because you must traverse node by node — there's no jumping to "index 5"

  • Extra memory is spent on pointers (one for singly linked, two for doubly linked)



The trade-off in one line: arrays win on indexing, linked lists win on structural flexibility.









Complexity at a Glance






Operation              Linked List                       Array
─────────────────────────────────────────────────────────────────────────────
Access ith element O(n) O(1)
Insert at start O(1) O(n)
Insert at end O(n) without tail, O(1) with tail O(1) amortized
Delete at start O(1) O(n)
Delete in middle O(n) to find + O(1) to unlink O(n) to shift






The key takeaway: a linked list avoids shifting elements, but it pays for that flexibility with slower traversal. There is no free lunch — you're choosing which operation gets to be fast.









Types of Linked Lists






Singly Linked List



Each node points only to the next node. This is the most common and simplest form — easy to implement, memory-efficient, and the default choice unless you specifically need backward traversal.



Supports insertion and deletion at the start, end, or middle, though operations at the end require either a tail pointer or a full traversal.






Doubly Linked List



Each node stores two pointers — one to the next node, one to the previous node.



Advantage: traversal in both directions, and deletion of a known node becomes O(1) without needing to find its predecessor first.



Disadvantage: more memory per node, and every insertion or deletion requires updating two sets of pointers instead of one.



Useful whenever backward traversal matters — for example, implementing an undo feature or a browser's back/forward navigation.






Circular Linked List



The last node points back to the first node instead of to NULL. There is no natural "end."



Particularly useful in rotation-based problems and queue-style simulations — anything that cycles back to the beginning, like round-robin scheduling.









Special Linked List Variants



These aren't essential for beginner CP, but they're worth knowing about once the fundamentals are solid.






Memory-Efficient (XOR) Doubly Linked List



Instead of storing two separate pointers, a memory-efficient doubly linked list stores the XOR of the previous and next node's addresses in a single field. Traversal direction is recovered by XOR-ing the stored value with the address of the node you came from.



This halves the pointer overhead of a standard doubly linked list, but it's significantly trickier to implement and debug — not something you want to encounter for the first time mid-contest.






Unrolled Linked List



An unrolled linked list stores a small block of multiple elements inside each node, rather than just one. The nodes themselves are still linked together.



Benefits: better cache performance (since several elements sit together in memory), and reduced pointer overhead relative to the amount of data stored — often genuinely faster in practice than a standard linked list.



Trade-off: insertions and deletions are more complex, since each node must maintain a roughly balanced number of elements.






Skip List



A skip list is a probabilistic alternative to a balanced binary search tree. It maintains multiple "levels" of forward pointers, where higher levels skip over larger chunks of the list — allowing search to jump ahead instead of checking every node.



Why it's interesting: average-case search, insert, and delete are all O(log n), and the implementation is considerably simpler than a self-balancing tree like a Red-Black tree or AVL tree.



Trade-off: more pointer storage per node, and the performance guarantee is probabilistic rather than strict.









Common Linked List Problem Patterns



This is where linked lists become genuinely useful to study — these patterns recur across a huge range of CP and interview problems.






Traversing the List



Since there's no index-based access, reaching the nth element means walking node by node. The most common approaches: traverse once while counting nodes, use two pointers moving at different speeds, or use a hash table when repeated lookups are needed.






Detecting a Cycle



A linked list can accidentally — or intentionally, in a problem — contain a loop.



The brute-force approach stores every visited node in a hash table; seeing a repeated node confirms a cycle. It works, but costs O(n) extra space.



Floyd's Cycle Detection (the "tortoise and hare") does it in O(1) space: a slow pointer advances one step at a time, a fast pointer advances two. If the list has a cycle, the fast pointer will eventually lap the slow one and they'll meet. If the fast pointer reaches NULL, there's no cycle. This is one of the most famous tricks in all of linked list problems, and it generalises to detecting cycles in functional graphs too.






Finding the Middle



Two common methods: count the total nodes first, then traverse to n/2 — or use the same slow/fast pointer trick from cycle detection. When the fast pointer reaches the end, the slow pointer is sitting exactly at the middle. Elegant, and reusable across several other problems on this list.






Determining Odd or Even Length



The fast pointer technique extends naturally here too — whether the fast pointer lands exactly on the last node or overshoots past it tells you the parity of the list's length, without ever counting nodes explicitly.






Finding the Merge Point of Two Lists



When two linked lists share a common tail (they intersect and become one list at some node), the standard approach is:




  1. Find the length of both lists

  2. Advance the pointer of the longer list forward by the length difference

  3. Move both pointers forward together, one step at a time

  4. The first node where they coincide is the merge point



This works because once both pointers are equidistant from the end, walking them together guarantees they hit the shared node simultaneously.






Merging Two Sorted Linked Lists



Given two sorted lists, merge them into one sorted list — the same idea as the merge step in merge sort, just applied to linked nodes instead of array slices. A single pointer-based comparison walks both lists, always picking the smaller current node and advancing that list's pointer.






Reversing in Pairs or Groups of k



Example: 1 → 2 → 3 → 4 becomes 2 → 1 → 4 → 3 when reversed in pairs. The same idea generalises to reversing every group of k nodes. This is an excellent exercise for practicing recursive pointer rewiring, since each group's reversal depends on correctly reconnecting to the result of reversing the next group.






Checking for a Palindrome



A linked list reads the same forward and backward. Two common approaches: push every value onto a stack while traversing, then compare against a second traversal — or find the middle, reverse the second half in place, and compare the two halves directly (more space-efficient, since it avoids the extra stack).






The Josephus Problem



A classic circular linked list problem: people stand in a circle, and every k-th person is eliminated until one remains. It's often solved through circular traversal combined with modular arithmetic, and it's a great test of whether you can reason cleanly about circular structures under elimination.









When You Need to Move Backward but Can't



Sometimes a problem hands you a pointer to the k-th node and expects you to access earlier elements — but a standard singly linked list offers no way to go backward.



A few options: maintain extra references as you traverse forward, switch to a doubly linked list if backward access is a recurring requirement, or reach for an XOR linked list in memory-constrained scenarios where the added complexity is worth the savings.



The right choice depends entirely on how often backward access is needed — a one-off lookup doesn't justify restructuring the whole list.









Why Linked List Problems Matter in CP



Linked list problems teach far more than the data structure itself. They train you to think rigorously about pointers, traversal, invariants, edge cases, and structural modification under constraints — skills that transfer directly to trees, graphs, recursion-heavy problems, and anything involving merging or restructuring data.



In other words: a small structure with an outsized learning impact.









Summary



Linked lists are dynamic, pointer-based structures, strong on insertion and deletion, weaker on random access. We covered singly, doubly, and circular linked lists, the advanced variants (XOR lists, unrolled lists, skip lists), and the problem patterns that show up again and again — cycle detection, finding the middle, merging, reversing in groups, and palindrome checking.



Final takeaways:




  • Arrays win when you need fast indexing

  • Linked lists win when you need structural flexibility

  • Slow traversal is the price paid for cheap insertion and deletion

  • The slow/fast two-pointer technique solves a surprising number of linked list problems elegantly, and is worth internalising as a reusable pattern






This series documents concepts as I learn them — follow along for each new session.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar & Graph

MITRE ATT&CK Matrix Navigator
1 belegte Technik
T1110TA0006 · Credential Access
Brute Force
Mitigation: M1036 Account Use Policies
Quelle: Kontext-Klassifikation des Artikeltextes · Konfidenz 85%
MFA/Passkeys aktivieren, Account-Lockouts und Passwort-Policies verschärfen, Anmeldeversuche überwachen.
Credential Access
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
4 Knoten · 3 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

6 Cluster
45 Quellen
Best Black Friday streaming deals: 10+ offers with up to 75% off Disney+, Hulu, Paramount+, HBO Max, Apple TV, and more
Latest from TechRadar vor 24 Min.
44 weitere Quellen
Latest from TechRadarvor 20 Min.Best AirPods Black Friday deals: huge savings on AirPods Pro 3 and more Latest from TechRadarvor 11 Min.Black Friday iPhone deals: record-low iPhone 17 Pro prices, plus free AirPods with the iPhone 18 Pro WIREDvor 21 Min.The Best Black Friday iPad Deals On the Latest 2026 Models: Get $100 Off WIREDvor 18 Min.Best Kindle and E-Reader Black Friday Deals (2026): Up to $180 Off Latest from Windows Centralvor 24 Min.My daily driver Xbox and PC headset is a solid $55 cheaper for Black Friday Cyber Security Newsvor 30 Min.Don’t Get Scammed by the Deal: Essential Cybersecurity Tips to Stay Safe This Black Friday Latest from TechRadarvor 32 Min.Black Friday 2026 laptop deals: big savings on Chromebooks, MacBooks, gaming laptops, and more WIREDvor 1 Std.I Found the 20 Best Black Friday Tech Deals, Up to 50% Off (2026) appgefahren.devor 44 Min.iMazing 3 zum Black Friday: Upgrade für iPhone-Manager jetzt mit 50 Prozent Rabatt PC-WELTvor 28 Min.Amazon reduziert portable Sandisk-SSD mit 1 TB und 1.000 MB/s um 20 Prozent am Black Friday PC-WELTvor 25 Min.Black Friday ist da! Die besten Technik-Deals bei Amazon am 27. November CNETvor 1 JahrBag a Free $15 Amazon Credit When You Spend $100 on Apple Gift Cards In Amazon’s Black Friday Sale WIREDvor 39 Min.Best Black Friday Toy Deals (2026): Up to 50% Off Lego, Board Games, and Toys Latest from TechRadarvor 1 Std.Best Black Friday home office deals 2026 — save on our top-tested work essentials from Herman Miller, FlexiSpot, Logitech, Epson and more Latest from TechRadarvor 1 Std.Sony WH-1000XM6 just hit a record-low price — now it's Black Friday Latest from TechRadarvor 59 Min.Lenovo's Copilot+ IdeaPad Slim 3 with 16GB RAM and a 512GB SSD is £350 off for Black Friday The Vergevor 54 Min.Our favorite headphones and earbuds are cheaper than ever ahead of Black Friday Computer Bildvor 1 Std.Black Friday: Live-Show ab 16 Uhr – die besten Deals t3n.devor 1 Std.Black Friday: Alle guten Angebote zu Apple, Samsung, Fritz und Co. in der Übersicht Golem.devor 1 Std.Anzeige: Google Pixel 10a am Black Friday bei Amazon erstmals unter 380 Euro COMPUTER BILDvor 1 Std.COMPUTER BILD: Die Deal-Checker! BLACK FRIDAY 2026 WIREDvor 1 Std.The Best Black Friday Streaming Deals (2026): Apple TV, Disney, Paramount, and More GamingOnLinux Latest Articl…vor 1 Std.itch.io Creator Day & Black Friday 2026 sale is live Latest from TechRadarvor 1 Std.Best Black Friday MacBook Air deals: biggest discounts on Apple's thin and light laptop range Latest from TechRadarvor 1 Std.Proton VPN vs ExpressVPN – which secure VPN should you pick this Black Friday? WIREDvor 10 Std.The 108 Best Black Friday Deals Are Now Live: Our Expert Picks for 2026 WIREDvor 1 Std.20 Best Black Friday Tech Deals (2026) WIREDvor 1 Std.The 10 Best Black Friday TV Deals (2026): Save Up to 53% Off Giga.devor 1 Std.Black Friday 2026 bei Back Market: Dyson, Ninja und GoPro jetzt deutlich günstiger Cyber Security Newsvor 1 Std.Black Friday or Black Fraud Day? 7 Cyber Traps to Watch Out for Before You Click ‘Buy’ CNETvor 2 TagenLive: Black Friday Is Here. Shop Our Favorite Deals and Save Up to 60% Apple, Anker, Bose and More WIREDvor 1 Std.22 Best Black Friday Deals Under $100 (2026) WIREDvor 1 Std.Best Black Friday Phone Deals (2026): iPhone, Pixel, and More The Vergevor 1 Std.The absolute best Black Friday deals we’ve found (so far) Giga.devor 1 Std.AirPods Pro 3 im Black-Friday-Sturzflug: So günstig waren Apples Top-In-Ears noch nie PC-WELTvor 1 Std.Black Friday bei Amazon Haul: 20 Prozent Rabatt auf Powerbanks, Batterieprüfer, Speichersticks und mehr PC-WELTvor 1 Std.Black Friday bei Amazon Haul: 20 Prozent Rabatt auf Powerbanks, Batterieprüfer, Speichersticks und mehr t3n.devor 2 Std.Kindle, Echo Dot, Fire TV: Diese neuen Amazon-Geräte sind zum Black Friday stark reduziert Macerkopf.devor 2 Std.Amazon Black Friday Woche: iPad Air, iPhone 18 Cases, AirTag 2, Fire TV Sticks, Echo Dot und mehr appgefahren.devor 1 Std.JMGO mit Black Friday-Deals: Heimkino-Bundles bis zu 60 Prozent günstiger PC-WELTvor 2 Std.Google Pixel 11 jetzt unglaubliche 430 Euro günstiger im Black-Friday-Deal: Tiefstpreis bei Amazon PC-WELTvor 1 Std.Norton 360 Premium-Security an Black Friday nur 19,99 Euro statt 100 Euro Latest from TechRadarvor 2 Std.The best Black Friday headphone deals: Sony, AirPods and more Latest from TechRadarvor 2 Std.Best Black Friday mini PC deals 2026 live: Save on desktops from Apple, Geekom, GMKtec, Minisforum, and more
15 Quellen
CVE-2026-95457 | Google Android Camera reconnect.shard.cml privileges management
VulDB Updates vor 1 Std.
14 weitere Quellen
VulDB Updatesvor 1 Std.CVE-2026-95458 | Google Android Bluetooth Setup bluetooth_setup_impl.cc OnAudioSourceConnectChanged privileges management VulDB Updatesvor 1 Std.CVE-2026-95464 | Google Android logical_link.cc SignalError use after free VulDB Updatesvor 1 Std.CVE-2026-95456 | Google Android a2dp_offload_manager.cc StartA2dpOffload use after free VulDB Updatesvor 1 Std.CVE-2026-95463 | Google Android data_element.cc DataElement::Read recursion Engadgetvor 1 Std.Google will soon share Android developers' addresses publicly VulDB Updatesvor 2 Std.CVE-2026-95429 | Google Android BrEdrDynamicChannel bredr_dynamic_channel.cc resource consumption VulDB Updatesvor 2 Std.CVE-2026-95434 | Google Android LowEnergyScanner low_energy_scanner.cc NotifyPeerFound resource consumption VulDB Updatesvor 2 Std.CVE-2026-95441 | Google Android Bluetooth connection.cc OnDisconnectionComplete denial of service VulDB Updatesvor 2 Std.CVE-2026-95422 | Google Android periodic_advertising_synchronizer.cc OnSyncEstablished assertion VulDB Updatesvor 2 Std.CVE-2026-95423 | Google Android local_service_manager.cc OnWriteCCC null pointer dereference VulDB Updatesvor 2 Std.CVE-2026-95447 | Google Android SDP Client client.cc OnRxFrame memory corruption VulDB Updatesvor 2 Std.CVE-2026-95421 | Google Android Command Processing bredr_signaling_channel.cc DecodeRxUnit use after free VulDB Updatesvor 2 Std.CVE-2026-95435 | Google Android advertising_data.cc FromBytes out-of-bounds VulDB Updatesvor 2 Std.CVE-2026-95446 | Google Android credit_based_flow_control_rx_engine.cc ProcessPdu input validation
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Competitive Programming Series — Session 3: Linked Lists

Thematisch verwandte Begriffe: Competitive, Programming, Series, Session · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag