Monday, January 8, 2018

Leetcode 18: 4 sum

January 8, 2018

Introduction


One of benefit is to learn python programming language when I take mock interview. Recently I met a few of peers used python to write code. 4 sum is the algorithm I have practiced over and over again, but to review python code is kind of challenge.

Code review


Here is the python code. The peer and I had a short discussion how to make the code look more clean. And then the code was changed and brought back a bug.


No comments:

Post a Comment