上一页 1 2 3 4 5 6 7 8 9 10 ··· 36 下一页
摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 intonums1 as one sorted array.Note:You may assume that nums1 has enough space (size tha... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(126) 评论(0) 推荐(0)
摘要: 代码:#include #include #include #include #include #pragma comment(lib, "gdiplus.lib")using namespace std;using namespace Gdiplus;int main() { Gdiplus... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(1024) 评论(0) 推荐(0)
摘要: Remove Element Total Accepted: 60351 Total Submissions: 187833 My Submissions Given an array and a value, remove all instances ... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(113) 评论(0) 推荐(0)
摘要: String to Integer (atoi)Total Accepted:52232Total Submissions:401038My Submissions Implement atoi to convert a string to an integer.Hint: Carefully co... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(160) 评论(0) 推荐(0)
摘要: 大牛没有能做出来的题,我们要好好做一做 Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This prob... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(198) 评论(0) 推荐(0)
摘要: Add Binary Total Accepted: 46815 Total Submissions: 189215 My Submissions Given two binary strings, return their sum (also a bin... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(168) 评论(0) 推荐(0)
摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and']', determine if the input string is valid.The brackets must close in the co... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(125) 评论(0) 推荐(0)
摘要: Write a function to find the longest common prefix string amongst an array of strings.我的解决方案:class Solution {public: string longestCommonPrefix(vec... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(217) 评论(0) 推荐(0)
摘要: 编辑部的主页:好像没啥用http://shop.oreilly.com/product/0636920022923.do每章的代码,github上面的:中文版https://github.com/willard-yuan/pcv-book-codegithub上面,英文版:https://githu... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(3668) 评论(0) 推荐(0)
摘要: Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints: Could negative integers be palin... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(148) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 36 下一页