<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sabira Khan</title>
    <description>The latest articles on DEV Community by Sabira Khan (@sabira-khan).</description>
    <link>https://dev.to/sabira-khan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F879449%2F05b9786a-1cfd-43bf-8925-46fc07a0cd19.jpeg</url>
      <title>DEV Community: Sabira Khan</title>
      <link>https://dev.to/sabira-khan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sabira-khan"/>
    <language>en</language>
    <item>
      <title>Recursive tree queries in Drizzle without raw SQL</title>
      <dc:creator>Sabira Khan</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:20:07 +0000</pubDate>
      <link>https://dev.to/sabira-khan/recursive-tree-queries-in-drizzle-without-raw-sql-3lcm</link>
      <guid>https://dev.to/sabira-khan/recursive-tree-queries-in-drizzle-without-raw-sql-3lcm</guid>
      <description>&lt;p&gt;I'm not sure.. when was the last time I posted here.. its prolly been years.. but I built something that was long overdue, and had to share. &lt;br&gt;
So, most apps have at least one tree hiding in a table. Product categories, comment threads, folders, org charts. They usually look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;categories&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pgTable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'categories'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;serial&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'id'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;primaryKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;parentId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;integer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'parent_id'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;references&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AnyPgColumn&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;categories&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'name'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;notNull&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Storing a tree this way is easy. Reading it back is where it gets awkward. "Give me every subcategory of Clothing, however deep it goes" needs a recursive query, and Drizzle does not have a builder for that yet. The &lt;a href="https://github.com/drizzle-team/drizzle-orm/issues/209" rel="noopener noreferrer"&gt;feature request&lt;/a&gt; has been open since 2023.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hand-written version
&lt;/h2&gt;

&lt;p&gt;You can do it today with the &lt;code&gt;sql&lt;/code&gt; template and a &lt;code&gt;WITH RECURSIVE&lt;/code&gt; CTE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="sb"&gt;`
  WITH RECURSIVE tree AS (
    SELECT c.*, 1 AS depth, CAST(c.id AS TEXT) AS path
    FROM categories c
    WHERE c.parent_id = ${clothingId}

    UNION ALL

    SELECT c.*, t.depth + 1, t.path || '/' || c.id
    FROM categories c
    JOIN tree t ON c.parent_id = t.id
  )
  SELECT * FROM tree ORDER BY depth, path
`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Yes, it works, but then you lose most of what you picked Drizzle for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No types.&lt;/strong&gt; &lt;code&gt;rows&lt;/code&gt; is &lt;code&gt;unknown[]&lt;/code&gt;. You cast it and hope the schema still matches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No column mapping.&lt;/strong&gt; You get &lt;code&gt;parent_id&lt;/code&gt;, not &lt;code&gt;parentId&lt;/code&gt;. Timestamps come back as strings on some drivers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No composition.&lt;/strong&gt; You cannot join this to &lt;code&gt;products&lt;/code&gt; or add &lt;code&gt;.where()&lt;/code&gt; and &lt;code&gt;.limit()&lt;/code&gt; with the query builder. Every variation is another SQL string.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No cycle protection.&lt;/strong&gt; If bad data makes a category its own grandparent, this query runs until the database stops it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Different syntax per database.&lt;/strong&gt; String concatenation and casts differ between Postgres, SQLite and MySQL.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And you will write a second version for ancestors (breadcrumbs), and a third for the whole forest.. like, come on.&lt;/p&gt;

&lt;h2&gt;
  
  
  With drizzle-tree
&lt;/h2&gt;

&lt;p&gt;I wrote &lt;a href="https://github.com/sabira-khan/drizzle-tree" rel="noopener noreferrer"&gt;drizzle-tree&lt;/a&gt; to handle this once. You describe the tree:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;defineTree&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'drizzle-tree/pg'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;categoryTree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;defineTree&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;categories&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;categories&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;parentId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;categories&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;parentId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then query it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;categoryTree&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findDescendants&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;clothingId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;// [&lt;/span&gt;
&lt;span class="c1"&gt;//   { id: 2, parentId: 1, name: 'Shirts', depth: 1, path: '1/2' },&lt;/span&gt;
&lt;span class="c1"&gt;//   { id: 3, parentId: 2, name: 'Linen shirts', depth: 2, path: '1/2/3' },&lt;/span&gt;
&lt;span class="c1"&gt;// ]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;rows&lt;/code&gt; is typed from your schema, with &lt;code&gt;depth&lt;/code&gt; and &lt;code&gt;path&lt;/code&gt; added. Keys are camelCase and dates are &lt;code&gt;Date&lt;/code&gt; objects, as with any other Drizzle query.&lt;/p&gt;

&lt;p&gt;Breadcrumbs are the same call in the other direction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;trail&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;categoryTree&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findAncestors&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;linenShirtsId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;includeSelf&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And if you want a nested object for a sidebar menu:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;menu&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;categoryTree&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;nest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;categoryTree&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findForest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;// [{ id: 1, name: 'Clothing', children: [{ id: 2, name: 'Shirts', children: [...] }] }]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  It composes with the query builder
&lt;/h2&gt;

&lt;p&gt;This is the part I cared about most. &lt;code&gt;descendants()&lt;/code&gt;, &lt;code&gt;ancestors()&lt;/code&gt; and &lt;code&gt;forest()&lt;/code&gt; return a CTE that you pass to &lt;code&gt;db.with()&lt;/code&gt;, so it behaves like a table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sub&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;categoryTree&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;descendants&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;clothingId&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;with&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;productsTable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;depth&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;depth&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;innerJoin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;productsTable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;productsTable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;categoryId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;orderBy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;depth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That gives you every product anywhere under Clothing, paginated, in one query.&lt;/p&gt;

&lt;h2&gt;
  
  
  The details that usually get skipped
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cycles.&lt;/strong&gt; Each query checks the path it has walked and stops before visiting a node twice. Bad data cannot make it loop forever.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-tenant trees.&lt;/strong&gt; &lt;code&gt;where&lt;/code&gt; runs at every level of the walk, so the walk never leaves one tenant: &lt;code&gt;where: eq(categories.tenantId, tenantId)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Depth limits.&lt;/strong&gt; &lt;code&gt;maxDepth: 2&lt;/code&gt; stops after two levels, which is useful for "show children and grandchildren only".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three databases.&lt;/strong&gt; PostgreSQL, SQLite and MySQL 8, each from its own entry point (&lt;code&gt;drizzle-tree/pg&lt;/code&gt;, &lt;code&gt;/sqlite&lt;/code&gt;, &lt;code&gt;/mysql&lt;/code&gt;). CI tests drizzle-orm 0.40 through 1.0.0-rc.6 on Node 20, 22 and 24.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install drizzle-tree
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The idea / inspo comes from &lt;a href="https://github.com/staudenmeir/laravel-adjacency-list" rel="noopener noreferrer"&gt;laravel-adjacency-list&lt;/a&gt;, which has been the standard way to do this in Laravel's Eloquent for years. (And its one of my favorite repos)&lt;br&gt;
I wanted the same thing in TypeScript :)&lt;/p&gt;

&lt;p&gt;The repo is &lt;a href="https://github.com/sabira-khan/drizzle-tree" rel="noopener noreferrer"&gt;sabira-khan/drizzle-tree&lt;/a&gt;. &lt;br&gt;
If you store trees in a different shape, such as closure tables or materialized paths, I'd like to hear about it in the issues.&lt;/p&gt;

&lt;p&gt;Happy building!&lt;/p&gt;

</description>
      <category>drizzle</category>
      <category>typescript</category>
      <category>postgres</category>
      <category>node</category>
    </item>
    <item>
      <title>Hey, do you know about Beecrowd?</title>
      <dc:creator>Sabira Khan</dc:creator>
      <pubDate>Sun, 19 Jun 2022 19:53:19 +0000</pubDate>
      <link>https://dev.to/sabira-khan/hey-do-you-know-about-beecrowd-54c3</link>
      <guid>https://dev.to/sabira-khan/hey-do-you-know-about-beecrowd-54c3</guid>
      <description>&lt;p&gt;I guess not many of know about this amazing site, &lt;strong&gt;&lt;a href="https://www.beecrowd.com.br/judge/en" rel="noopener noreferrer"&gt;Beecrowd&lt;/a&gt;&lt;/strong&gt;, which is geared towards developing newbie (and advanced!) competitive programmers. Those of us who do know about it, most likely knows it by its old name : &lt;em&gt;Uri Online Judge&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I know, I know, amidst many much more popular competitive programming sites, such as &lt;em&gt;CodeForces, CodeChef, TopCoder&lt;/em&gt; etc. Beecrowd can be easy to miss. I myself discovered it only thanks to my professor nagging me to take a better look at my university's LMS site for useful links related to coding. So, although Beecrowd might not be the first site that pops up on your search results page, it is still a favorite among professors worldwide, especially for beginners. So, here's some of Beecrowd's features for newcomers:&lt;/p&gt;

&lt;h2&gt;
  
  
  Topic Based Problems
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdr3uswma86mam7bgemo4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdr3uswma86mam7bgemo4.png" alt="Beecrowd Topic Based Question Hub" width="800" height="596"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upon signing up, you can choose which questions to solve from any programming topic. It is preferable as a newbie you start from the Beginner's section, as this section will help you build the right foundations needed for competitive programming, without scaring you too much with complex concepts. &lt;br&gt;
If you want to solve questions without hints for topics, you can turn it off in the settings. For each question, you can also check out the level of complexity, the lower the level, the easier a question is. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foh2n8gt7iiper916ejjj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foh2n8gt7iiper916ejjj.png" alt="Beecrowd Question Page" width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For each question, you may find more test cases to test against your solution by clicking the "Udebug" option and checking against the given inputs. Post the query in the forum if there's any bug. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft0pxyixny4xm0yywkcmg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft0pxyixny4xm0yywkcmg.png" alt="Question Page" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa690hvd1ndkoz8a6h9bc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa690hvd1ndkoz8a6h9bc.png" alt="Udebug page" width="799" height="357"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Live Solutions Page
&lt;/h2&gt;

&lt;p&gt;Beecrowd has a live page, updating every instant with users' solutions submitted worldwide, showcasing their rank, time taken and error percentage if any. You can find interesting questions from this page, as well as find other active users. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyx0hj0hzfednel6krp36.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyx0hj0hzfednel6krp36.png" alt="Live Solutions Page" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Check out the ranks!
&lt;/h2&gt;

&lt;p&gt;You can find your rank worldwide by clicking the "Find me" option, see the countries' rankings, as well as check out your university's rank (invite more of your friends to solve with you, to boost your university's rank!) &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F19an73vxl2wejqrsfeky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F19an73vxl2wejqrsfeky.png" alt="Ranks' Page" width="800" height="485"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Your Personal Dashboard
&lt;/h1&gt;

&lt;p&gt;When you go to your profile and choose the statistics option, you'll see problems solved by category, progress so far, submissions by language and type of answer, as well as achievements. All of this will help you determine how far you've come and how far you still need to go. Check out topics you haven't covered yet and start focusing on them. Your percentage of erroneous answer should also decrease over time. Remember, in actual competitive programming competitions, there's a penalty for each wrong answer submitted after you've submitted your first correct answer for a given problem. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe9cq6laq3l8zwrds92ok.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe9cq6laq3l8zwrds92ok.png" alt="Statistics Dashboard" width="787" height="571"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Beecrowd Blog!
&lt;/h2&gt;

&lt;p&gt;Last but not the least, the blog option of the news feature contains lots of useful articles related to tech and programming in general. Give it a try. You, too, could become a blogger if you wish by signing up and contribute back to the community. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fapfu7ii8dae06nmknrn2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fapfu7ii8dae06nmknrn2.png" alt="Blog Page" width="800" height="526"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope, I have been able to give you an overview of Beecrowd by now. This is not some paid/unpaid promotion. It is just me,  introducing one of my favorite sites, to other competitive programmers here. Hope you all liked it! Happy Coding :)&lt;/p&gt;

</description>
      <category>beecrowd</category>
      <category>competitiveprogramming</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
