2 questions:
Solved and coded both, but rejected.
Want to ask, what can be cause: maybe not communicating well? I not asked constraints (but solved in linear time so it doesn't much matter) and not looked for example in a hurry in second task and started solving for ordered binary tree but then reformed, also in hurry forgot about parameters in function but then added. Can these facts be cause for rejecting?