We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Queen's Attack II
Queen's Attack II
Sort by
recency
|
1005 Discussions
|
Please Login in order to post a comment
Given plenty of time, I can complete medium diffcult level problem. but I cannot complate in half an hour.
Here is problem solution in Python, Java, C++, C and Javascript - https://programmingoneonone.com/hackerrank-queens-attack-ii-problem-solution.html
**simple python solution **
def queensAttack(n, k, r_q, c_q, obstacles):
My Java solution with linear time and o(k) space complexity: