leetcode.com

今天试了一下 https://oj.leetcode.com/faq/

一个oj 编程网站, 不同的是, 这里基本都是面试题. 而非 像 欧拉计划 https://projecteuler.net/ 那样 全数学.

 

我试了下, 因为 支持python, 就用了python, c++,java, 毕竟都没这个方便不是.

 

说来丢人,  看到一个 翻转 字符串中词的题, 用python写, 我居然花了18分钟才ac.

Submit Time Status Run Time Language
0 minutes ago Accepted 160 ms python
0 minutes ago Wrong Answer N/A python
6 minutes ago Wrong Answer N/A python
6 minutes ago Compile Error N/A python
8 minutes ago Compile Error N/A python
13 minutes ago Compile Error N/A python
14 minutes ago Compile Error N/A python
16 minutes ago Wrong Answer N/A python
17 minutes ago Runtime Error N/A python
18 minutes ago Wrong Answer N/A python
 

 

有没有  trim 两段的空白, 连续的空白怎么处理, tab和 space 是否区分, 我都没考虑. o(︶︿︶)o 唉, 发现自己真的好差劲.

这还是用python, 要是用 java 或者 c++, 我觉得我可能连ac都难了. 

 

记一件丢人的事儿.