leetcode-cli icon indicating copy to clipboard operation
leetcode-cli copied to clipboard

[bugfix] Bug fix for #184, #192

Open HwangTaehyun opened this issue 5 years ago • 0 comments

This resolves #184 and resolves #192.

I encountered the same bug as Issue #184, #192, so I created this PR. There seems to have been some changes in response for leetcode test api (https://leetcode.com/problems/$slug/interpret_solution).

  • leetcode test url's response doesn't have "interpret_expected_id" key any more.
  • leetcode verify url's response have test's expected results (ex. expected_code_answer entry)
    • {"status_code": 10, "lang": "cpp", "run_success": true, "status_runtime": "4 ms", "memory": 6404000, "code_answer": ["[]"], "code_output": [], "elapsed_time": 14, "task_finish_time": 1593372439205, "expected_status_code": 10, "expected_lang": "cpp", "expected_run_success": true, "expected_status_runtime": "4", "expected_memory": 6480000, "expected_code_answer": ["[0,1]"], "expected_code_output": [], "expected_elapsed_time": 10, "expected_task_finish_time": 1593372309445, "correct_answer": false, "total_correct": null, "total_testcases": null, "runtime_percentile": null, "status_memory": "6.4 MB", "memory_percentile": null, "pretty_lang": "C++", "submission_id": "runcode_1593372438.5439272_GcikNkRPuF", "status_msg": "Accepted", "state": "SUCCESS"}

HwangTaehyun avatar Jun 28 '20 19:06 HwangTaehyun