Skip to main content

All Questions

Filter by
Sorted by
Tagged with
13 votes
1 answer
2k views

Extended stable marriage challenge

I've written a solution for the stable marriage problem in the case that the number of men is not equal to the number of women. My problem is not that I can't prove my code is right. The problem is I ...
Arman Malekzadeh's user avatar
4 votes
1 answer
179 views

2D discrete motion planner

I am writing a 2D discrete motion planner for a task with specific instructions. The instructions for the search algorithm are contained entirely in the docstring for the ...
mmmfarrell's user avatar
2 votes
2 answers
264 views

Improving the time complexity of my back pack algorithm

Is there anyone who can help me improve the time complexity of this backpack algorithm, for which I already use sliding array to improve the space complexity. The problem is as follows: Given <...
Cheng Gu's user avatar
2 votes
2 answers
2k views

Count number of matching nodes in a Binary tree

Problem Count the number of matching nodes in the subtree rooted at some node n. Solution ...
CodeYogi's user avatar
  • 5,127
1 vote
1 answer
583 views

Check if a Binary Tree is full

Problem statement Given a node check whether the sub-tree rooted at given node is full binary tree or not. Definition A full binary tree (sometimes proper binary tree or 2-tree) is a tree in ...
CodeYogi's user avatar
  • 5,127