导航

2016年3月31日

摘要: // 10.3.2.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include #include using namespace std; string & make_plural(int cnt, string &str) { str=cnt > 1 ? (str + "s") : str; ... 阅读全文

posted @ 2016-03-31 22:01 CSU蛋李 阅读(102) 评论(0) 推荐(0)

摘要: LeetCode Count Primes C++ 阅读全文

posted @ 2016-03-31 02:35 CSU蛋李 阅读(188) 评论(0) 推荐(0)

摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文

posted @ 2016-03-31 01:34 CSU蛋李 阅读(104) 评论(0) 推荐(0)

摘要: Reverse a singly linked list. 题目:翻转一个单向链表 很简单,不过要注意设置两个辅助指针变量 阅读全文

posted @ 2016-03-31 01:05 CSU蛋李 阅读(109) 评论(0) 推荐(0)

摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文

posted @ 2016-03-31 00:58 CSU蛋李 阅读(108) 评论(0) 推荐(0)

摘要: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the 阅读全文

posted @ 2016-03-31 00:49 CSU蛋李 阅读(157) 评论(0) 推荐(0)