由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - C++ 程序求助
相关主题
java Class Vector Count the number of ON bits in an integer.
贴一道take home的面试题请教几个算法题, 第一个
标识符真的不能带空格么?紧急求助!Stochastic Integer Programming (转载)
linux内存分配中page的几个问题 (转载)Obama Google Onsite Question
一道微软面试题若问JAVA问题~
ask a fortran questionmatlab里面的bintprog能处理到多大规模的integer programming
NP【求助】Fortran多线程执行效率问题
a quick question about integer programming问一个编程题
相关话题的讨论汇总
话题: c++话题: vector话题: print话题: clean话题: program
进入CS版参与讨论
1 (共1页)
C******a
发帖数: 32
1
考虑有相同元素情形.需要给出compact, clean code, C or C++.
Write a C++ program that print the first longest
ascending or descending contiguous substring for a vector of integers. Given
a vector
4, 2, 1, 2, 3, 4, 3, 5, 1, 2, 4, 6, 5
the program would print:
1, 2, 3, 4
算法不难,但写不出简短的clean code. 欢迎讨论.
1 (共1页)
进入CS版参与讨论
相关主题
问一个编程题一道微软面试题
Algorithm - Hash Question??ask a fortran question
一个算法题目NP
vostro 230=银河1?2a quick question about integer programming
java Class Vector Count the number of ON bits in an integer.
贴一道take home的面试题请教几个算法题, 第一个
标识符真的不能带空格么?紧急求助!Stochastic Integer Programming (转载)
linux内存分配中page的几个问题 (转载)Obama Google Onsite Question
相关话题的讨论汇总
话题: c++话题: vector话题: print话题: clean话题: program