摘要:
用vector投机取巧了。看网上大神的数组代码。双指针的应用。class Solution {public: int removeElement(int A[], int n, int elem) { // Start typing your C/C++ solution bel... 阅读全文
摘要:
这种渣题都调了两次,还是欠练啊。class Solution {public: int removeElement(vector& nums, int val) { int i=0; int k=0; int j=nums.size(); ... 阅读全文
摘要:
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->... 阅读全文