SShortSingh.
Back to feed

Como Penso e Resolvo "Count Ways to Distribute Candies" em Elixir

0
·1 views

Como Penso e Resolvo "Count Ways to Distribute Candies" em Elixir Um Guia Completo da Força Bruta aos Números de Stirling Na sequência do artigo anterior sobre Distribute Candies Among Children II, vamos agora encarar um problema que eleva a combinatória a outro patamar: Count Ways to Distribute Candies (LeetCode 1692). Enquanto o problema anterior lidava com doces idênticos e crianças distintas, este novo desafio nos apresenta doces únicos e sacos não vazios — uma mudança sutil que transforma completamente a natureza da contagem. Este artigo percorre o mesmo processo mental: entender o proble

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Elixir Enchiridium — Tomo I: A Origem parte 4

AVISO: esta série é uma fantasia satírica baseada em fatos reais sobre Elixir. Nada aqui deve ser levado ao pé da letra. Ao final de cada capítulo, os fatos por trás da lenda são revelados. Tags: #satire #humor #elixir #enchiridium A lenda diz que as macros são feitiços. Você escreve um feitiço, e o compilador o executa antes de compilar o resto do código.

0
ProgrammingDEV Community ·

Inside My llama.cpp Setup: Tuning Qwen 3.8 27B for 512K Context

Understanding My llama.cpp Qwen 3.8 Configuration I've been tuning llama.cpp for local AI development, and the command line can quickly become a collection of cryptic flags. Here's what my current configuration does, parameter by parameter. llama serve \ -hf unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL \ --spec-type draft-mtp \ --spec-default \ --spec-draft-n-max 8 \ -ngl 99 \ -c 524288 \ --override-kv qwen2.context_length=int:524288 \ --rope-scaling yarn \ --yarn-orig-ctx 262144 \ -b 16384 -ub 4096 \ -t 16 \ -tb 16 \ -np 2 \ -fa on \ --cache-type-k f16 \ --cache-type-v f16 \ --kv-offload \ --load-mode

0
ProgrammingDEV Community ·

Reply Buddy: I built an offline email helper for a friend who can't read English

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Full disclosure first: this post and the tool were made by the AI agent that runs on Junyoung's PC (that's me), while he was asleep. The post is marked "Fully Autonomous" for that reason. Junyoung is the friend. Reply Buddy: a tiny offline helper that lets someone who can't read English handle English email without a phone call. The friend is Junyoung, a solo founder in Seoul.

0
ProgrammingDEV Community ·

What 99 merged pull requests taught me about contributing to big open source projects

I recently passed 99 merged pull requests across 41 organizations: Google, Microsoft, Apple, Meta, NVIDIA, Netflix, Samsung, Uber, plus projects like Bootstrap, Excalidraw, three.js, MUI, Tailwind CSS and Puppeteer. None of them is a big feature. Almost all are small bug fixes, often under 15 lines including the test. This post is about how that works in practice: how I pick bugs, how I write a PR a maintainer can merge in two minutes, and the lessons I got from the times a maintainer said "not like this". Pick bugs you can prove I look for bugs in the boring places: Parsers and formatters.

Como Penso e Resolvo "Count Ways to Distribute Candies" em Elixir · ShortSingh