I'm trying to implement a binary tree in solidity.
struct BTree{
uint x;
BTree lesser;
BTree greater;
bool nil;
}
Just realized that this is not possible as struct definition can't be recursive. Is there any work around possible to achieve my goal?