algorithms

DEV Community

5. Longest Palindromic Substring: Unraveling the Palindromic Puzzle 🧩 Hey fellow coders! 👋 Today, we're diving into a LeetCode classic that often stumps beginners but reveals a really elegant pattern once you spot it: the Longest Palindromic Substring problem. Don't let the fancy name scare you! We'll break it down piece by piece, find an intuitive way to tackle it, and emerge victorious with a n…

algorithmscomputer-science
Towards Data Science
DEV Community

⏱️ Reading time: 7-9 minutes 🎯 Difficulty: Beginner - Intermediate 📂 Themes: Computer Science, Binary, Memory, Performance What's inside? 🔍 The Problem — A CSS color that made me realize I understood nothing ⚡ Bits & Bytes — The two building blocks of everything 🔣 Hex & RGB — Why #FF0000 is red, and what those letters actually mean 🔤 ASCII & UTF-8 — How numbers become letters, emoji, and everythi…

algorithmscomputer-science
DEV Community

Weekly Challenge 375 Each week Mohammad S. Anwar sends out The Weekly Challenge , a chance for all of us to come up with solutions to two weekly tasks. My solutions are written in Python first, and then converted to Perl. Unless otherwise stated, Copilot (and other AI tools) have NOT been used to generate the solution. It's a great way for us all to practice some coding. Challenge , My solutions …

algorithmscomputer-scienceprogramming-languages
DEV Community

The default tree prep is sorting LeetCode's tree tag by acceptance rate, doing the top 40, and hoping the patterns transfer. They mostly don't. Tree problems feel unpredictable because the practice was organised by popularity, not by mechanism. Every binary tree interview problem is moving information through the tree in one of six ways, and once the six are visible, fifteen problems give more co…

algorithmscomputer-science
DEV Community

In metric collection systems, cardinality is a critical concept for balancing performance and cost. I have prepared a 4-step guide on how this balance is established in the real world. In this post, I will explain what metric cardinality is, why it matters, and how we can find the right balance in our systems based on my own experiences. We won't just stick to theoretical knowledge; we will addre…

algorithmscomputer-science
Hacker News

Building a Minsky Machine in Atlassian Automation 22nd May 2026 Engineering folklore holds that Jira (Atlassian's project-tracking tool) is Turing-complete. Existing claims point vaguely at automation features without exhibiting a reduction. This article supplies a proof, with setup instructions and execution trace. A Minsky register machine needs only two unbounded counters and a finite set of l…

algorithmscomputer-science
DEV Community

Why Analogies Make the OSI Model Easier to Understand In the previous article, we introduced the OSI Model as the seven-layer framework used to describe how network communication works. Understanding the names of the layers is important, but truly understanding their purpose requires something more practical. That's where analogies help. Networking is full of invisible processes. We can't see pac…

algorithmscomputer-science
DEV Community
Seenivasan A
1d ago

Technical interviews at top companies like Google, Amazon, and Meta are often centered around coding and algorithm-based problem-solving. Many students feel nervous about these interviews because they are very different from regular academic exams. However, understanding the interview process can make preparation easier and more effective. In most software engineering interviews, candidates are g…

algorithmscomputer-science
DEV Community

Hi everyone, my name is Greg . I've been working in web development since 2020. A few years ago, I started my journey into LeetCoding . Over this time, I've gathered several key insights that I'd like to share with you! Where LeetCode shines? It helps develop algorithmic and abstract thinking, and builds a solid foundation for competitive programming. It gives you confidence during live coding in…

algorithmscomputer-science
Scientific Reports
Scientific Reports
Z
Zenodo (CERN European Organization for Nuclear Research)

We prove that E7 is the unique simple Lie algebra g for which the quantity dim(g) + max_mark(Ĝ) is simultaneously prime, congruent to 1 (mod 4), and a Gaussian prime norm on the cascade tower of z = 2+i. The proof is by exhaustive enumeration over all simple Lie algebras—the four infinite classical families (An, Bn, Cn, Dn) and the five exceptional algebras (G2, F4, E6, E7, E8)—using a three-laye…

Computational Theory and MathematicsComputer SciencePhysical SciencesPolynomial and algebraic computation
Z
Zenodo (CERN European Organization for Nuclear Research)

We study the expression complexity of the Riemann explicit formula from the perspective of grammar-based symbolic regression. Starting from the EML operator eml(a,b) = exp(a) − log(b), we show that this operator fails to produce oscillatory terms and therefore cannot encode the explicit-formula structure. We then derive a replacement operator eml_zeta(g, t) = (cos(γt) + 2γ sin(γt)) / (¼ + γ²) dir…

Computational Theory and MathematicsComputer SciencePhysical Sciencessemigroups and automata theory
S
Swarm and Evolutionary Computation
DEV Community

Ever wondered why your "clean" polymorphic design underperforms in benchmarks? Virtual dispatch enables polymorphism, but it comes with hidden overhead: pointer indirection, larger object layouts, and fewer inlining opportunities. Compilers do their best to devirtualize these calls, but it isn't always possible. On latency-sensitive paths, it's beneficial to manually replace dynamic dispatch wi…

algorithmscomputer-science
DEV Community

The Problem We Were Actually Solving At its core, our Treasure Hunt Engine is a web-based game that generates treasure maps for users to solve. It's a simple concept, but one that relies heavily on caching, load balancing, and database performance. As our user base grew, so too did the pressure on our system. But the problem wasn't just about scaling up the infrastructure - it was about understan…

algorithmscomputer-sciencesoftware-engineering
DEV Community

Your Redis cache just expired on a key that 8,000 users hit every second. Every single one of those requests is now flying straight at your database. This is the thundering herd. You didn't have a traffic problem — you had a cache problem. Now you have both. Here's the setup: Service → Node.js API, 8,000 req/sec on the /feed endpoint Cache → Redis, TTL = 60s on the feed key DB → Postgres, comfort…

algorithmscomputer-sciencesoftware-engineering
Towards Data Science
DEV Community

In modern web development, scaling an application to track real-time transactional data presents unique hurdles especially when tracking hyper-volatile secondary market economies like the Blox Fruits Easter Update . Traditional gaming utility sites rely on static JSON tables or manual content management updates. The fatal flaw here is a structural 48-to-72-hour data lag. In a market where server …

algorithmscomputer-science
research.ioresearch.io

Sign up to keep scrolling

Create your feed subscriptions, save articles, keep scrolling.

Already have an account?