i tried to submit this same code over let code, but i am getting run time error which states as follows:
‘Line 1633: rapidjson::SizeType rapidjson::GenericValue<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator >::Size() const [Encoding = rapidjson::UTF8, Allocator = rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator]: Assertion `IsArray()’ failed. (document.h)’
and my code link is :-https://drive.google.com/file/d/16ZB5jxoJ7Jdl6JmIUpE96EDjK6i2DOgw/view?usp=sharing
You can try copy paste this code excatly on leet code , and check for the run time error there,
PLease if you can help?