---
title: "Discussion on \"Cheapest Flights Within K Stops\" | Hashnode"
description: "Discussion on \"Cheapest Flights Within K Stops\". Problem\nThere are n cities connected by some number of flights. You are given an array flights where flights[i] = [fromi, toi, pricei] indicates that there is a flight from city fromi to city toi with"
url: "https://hashnode.com/posts/cheapest-flights-within-k-stops/68c70982fe901329430da1d1"
---

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

Discussion

# [Cheapest Flights Within K Stops](https://chetan77.hashnode.dev/cheapest-flights-within-k-stops?utm_source=hashnode&utm_medium=feed)

Problem There are n cities connected by some number of flights. You are given an array flights where flights\[i\] = \[fromi, toi, pricei\] indicates that there is a flight from city fromi to city toi with

Sep 14, 2025 · 11 min read · chetan77.hashnode.dev  
Updated Jul 9  
Read the article

-   [#cheapest-flights-within-k-stops](https://hashnode.com/tag/cheapest-flights-within-k-stops)
-   [#dijkstrasalgorithm](https://hashnode.com/tag/dijkstrasalgorithm)
-   [#graphs](https://hashnode.com/tag/graphs)
-   [#queue](https://hashnode.com/tag/queue)
-   [#dsa](https://hashnode.com/tag/dsa)

## Written by

[Chetan Datta](https://hashnode.com/@chetan77)

@chetan77 · Hyderabad, India

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

Software Engineer

I share my learnings here. Thanks for reading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
