Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself may be ch ...
分类:
其他好文 时间:
2019-12-29 12:53:05
阅读次数:
85
Problem Statement Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 ...
分类:
其他好文 时间:
2019-12-29 11:21:04
阅读次数:
66
输出输入的n位整数的每一位之和的英文,注意一下输出的数组嵌套。 1 #include<cstdio> 2 #include<iostream> 3 using namespace std; 4 int main(){ 5 string num[10]={"zero","one","two","thr ...
分类:
其他好文 时间:
2019-12-29 01:06:51
阅读次数:
243
COMP2396 Object-oriented programming and JavaAssignment 5: A two-player Tic-Tac-Toe GameDue Date: 22th Dec 2019 23:59This assignment tests your unders ...
分类:
其他好文 时间:
2019-12-28 19:24:48
阅读次数:
92
原题链接在这里:https://leetcode.com/problems/backspace-string-compare/ 题目: Given two strings S and T, return if they are equal when both are typed into empty ...
分类:
其他好文 时间:
2019-12-28 09:34:46
阅读次数:
77
原文 Text 3 This year marks exactly two countries since the publication of Frankenstein; or, The Modern Prometheus, by Mary Shelley. Even before the inv ...
分类:
其他好文 时间:
2019-12-27 13:51:12
阅读次数:
836
题目: 思路:易得成立的条件为:$(a+b)\mod3==0$ && $max(a,b)\le min(a,b) 2$ ...
分类:
其他好文 时间:
2019-12-26 21:09:49
阅读次数:
87
#include <stdio.h>int main() { int *p1,*p2,*p,a,b; printf("please enter two integer numbers:"); scanf("%d,%d",&a,&b); // 输入两个整数 p1=&a; // 使p1指向变量a p2= ...
分类:
其他好文 时间:
2019-12-26 13:34:29
阅读次数:
972
Problem Statement Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. Example: Assu ...
分类:
其他好文 时间:
2019-12-26 09:31:42
阅读次数:
87
Kotlin class Solution { fun twoSum(nums: IntArray, target: Int): IntArray { val v2i: MutableMap<Int,Int> = mutableMapOf() for((index, value) in nums.w ...
分类:
其他好文 时间:
2019-12-25 12:58:50
阅读次数:
62