码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
[LC] 24. Swap Nodes in Pairs
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
Baozi Leetcode solution 72. Edit Distance
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
A1005
输出输入的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 A two-player Tic-Tac-Toe Game
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
LeetCode 844. Backspace String Compare
原题链接在这里: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
2019考研英语一 Text3分析
原文 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
Educational Codeforces Round 77 (Rated for Div. 2) B. Obtain Two Zeroes
题目: 思路:易得成立的条件为:$(a+b)\mod3==0$ && $max(a,b)\le min(a,b) 2$ ...
分类:其他好文   时间:2019-12-26 21:09:49    阅读次数:87
指针变量:输入a和b两个整数,按先大后小的顺序输出a和b。
#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
Leetcode solution 243: Shortest Word Distance
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
1. Two Sum
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
12209条   上一页 1 ... 67 68 69 70 71 ... 1221 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!