---
title: "Discussion on \"LeetCode #2392 Build a Matrix With Conditions, Topological Sort and Kahn's Algorithm\" | Hashnode"
description: "Discussion on \"LeetCode #2392 Build a Matrix With Conditions, Topological Sort and Kahn's Algorithm\". You are given a positive integer k. You are also given:\n\na 2D integer array rowConditions of size n where rowConditions[i] = [above<sub>i</sub>, below<sub>i</sub>], and\n\na 2D integer array colConditions of size m where colConditions[i] = [left<sub>i<..."
url: "https://hashnode.com/posts/leetcode-2392-build-a-matrix-with-conditions-topological-sort-and-kahns-algorithm/669e99a7e22d17ba935713e5"
---

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

Discussion

# [LeetCode #2392 Build a Matrix With Conditions, Topological Sort and Kahn's Algorithm](https://nobleknight.hashnode.dev/leetcode-2392-build-a-matrix-with-conditions-topological-sort-and-kahns-algorithm?utm_source=hashnode&utm_medium=feed)

You are given a positive integer k. You are also given: a 2D integer array rowConditions of size n where rowConditions\[i\] = \[above<sub>i</sub>, below<sub>i</sub>\], and a 2D integer array colConditions of size m where colConditions\[i\] = \[left<sub>i<...

Jul 22, 2024 · 3 min read · nobleknight.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#topological-sort](https://hashnode.com/tag/topological-sort)

## Written by

[Ajay Dandge](https://hashnode.com/@nobleknight)

@nobleknight · India

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

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
