---
title: "Discussion on \"Leetcode Hardest SQL 185: Is the Best Solution Still Slow?\" | Hashnode"
description: "Discussion on \"Leetcode Hardest SQL 185: Is the Best Solution Still Slow?\". LeetCode's SQL solutions use window functions and subqueries; window functions generally perform better on large datasets"
url: "https://hashnode.com/posts/leetcode-hardest-sql-185-is-the-best-solution-still-slow/682556a5f7e2ea9fc1763b5d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Leetcode Hardest SQL 185: Is the Best Solution Still Slow?](https://sqlflash.hashnode.dev/leetcode-hardest-sql-185-is-the-best-solution-still-slow?utm_source=hashnode&utm_medium=feed)

LeetCode's SQL solutions use window functions and subqueries; window functions generally perform better on large datasets

May 13, 2025 · 4 min read · sqlflash.hashnode.dev  
Read the article

-   [#sql-query-optimization](https://hashnode.com/tag/sql-query-optimization)
-   [#sql-database-sqlquery-databasemanagement-datamanipulation-dataanalysis-structuredquerylanguage-sqltips-sqltricks-sqlsyntax-sqlbestpractices-sqlperformance-sqldatabase-sqlserver-sqltutorial-sqlqueries-sqldatabasemanagement-sqldatamanipulation-sqldataanalysis-sqllearning](https://hashnode.com/tag/sql-database-sqlquery-databasemanagement-datamanipulation-dataanalysis-structuredquerylanguage-sqltips-sqltricks-sqlsyntax-sqlbestpractices-sqlperformance-sqldatabase-sqlserver-sqltutorial-sqlqueries-sqldatabasemanagement-sqldatamanipulation-sqldataanalysis-sqllearning)

## Written by

[SQLFlash](https://hashnode.com/@SQLFlash)

@SQLFlash

  
[View profile](https://hashnode.com/@SQLFlash)

Built for devs, blessed by DBAs

Sharing SQL optimization tips, product updates, and early access to SQLFlash — an AI tool that helps developers write faster queries.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
