- 博客(5)
- 资源 (4)
- 收藏
- 关注
原创 Python 中英文混输格式对齐问题
Python中使用str.format进行格式化输出 format使用方法较多,这里只说明其在填充与对齐上的使用方法: 填充与对齐 填充常跟对齐一起使用 ^、分别是居中、左对齐、右对齐,后面带宽度 :号后面带填充的字符,只能是一个字符,不指定的话默认是用空格填充 例如: In [40]: ulist=[] In [41]:ulist.append([1,"清华大学","10
2017-08-29 15:52:15 19040 9
原创 【C++】leetcode 220. Contains Duplicate III
题目: Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and nums[j] is at most t and the absolute
2017-08-03 16:11:19 660
原创 【C++】 LeetCode 87. Scramble String
题目: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great /
2017-08-01 19:17:55 323
原创 LeetCode terminate called after throwing an instance of 'std::logic_error' what(): basic_string::
错误提示: LeetCode进行案例测试运行时提示如下错误: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid 原因解析: 输入测试案例时格式不符合要求,比如有多余的空格等
2017-08-01 15:35:44 10036 1
原创 【C++】 LeetCode 30. Substring with Concatenation of All Words
题目: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly
2017-08-01 15:31:40 443
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人