由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - CODING QUESTIONS
相关主题
nodejs performance两道M软件大公司的最新面世算法题 (转载)
How to read binary(data) file generated by Fortran in C/C++ (转载)a simple question about constructor
generate unique integer ID from columns in SQL table (转载讨论个idea题
问一道面试题请教C++
越南问题 谁做出来了?[合集] 答案. 未排序的100个数字,如何最快地找出最大的5个
一个哈希表问题请教一个问题
Check if the sum of two integers in an integer array eqauls to the given number [合集] 为什么10进制输出是负的?
面试题 -算法?问一个算法题,可能比较老了,KNN
相关话题的讨论汇总
话题: coding话题: questions话题: triangle话题: write话题: return
进入Programming版参与讨论
1 (共1页)
i***0
发帖数: 8469
1
CODING QUESTIONS
Please write a solution for each of the following coding questions:
1. Given a singly linked list of integers, write a function to remove all
nodes with even values, and then provide a set of test cases against that
function.
2. Write me a function that receives three integer inputs for the lengths
of the sides of a triangle and returns one of four values to determine the
triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error). Generate
test cases for the functi
S**I
发帖数: 15689
2
都很简单么

all
lengths
the
a

【在 i***0 的大作中提到】
: CODING QUESTIONS
: Please write a solution for each of the following coding questions:
: 1. Given a singly linked list of integers, write a function to remove all
: nodes with even values, and then provide a set of test cases against that
: function.
: 2. Write me a function that receives three integer inputs for the lengths
: of the sides of a triangle and returns one of four values to determine the
: triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error). Generate
: test cases for the functi

A*******e
发帖数: 108
3
for 2:
int triangle (float a, float b, float c)
{
if (a+b<=c || a+c<=b || b+c<=a)
return 4;
if (a==b && b==c)
return 3;
if (a==b || b==c || a==c)
return 2;
return 1;
}

all
lengths
the
a

【在 i***0 的大作中提到】
: CODING QUESTIONS
: Please write a solution for each of the following coding questions:
: 1. Given a singly linked list of integers, write a function to remove all
: nodes with even values, and then provide a set of test cases against that
: function.
: 2. Write me a function that receives three integer inputs for the lengths
: of the sides of a triangle and returns one of four values to determine the
: triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error). Generate
: test cases for the functi

1 (共1页)
进入Programming版参与讨论
相关主题
问一个算法题,可能比较老了,KNN越南问题 谁做出来了?
请教一个字符串比较排序的问题一个哈希表问题
请有图形编程经验的大牛给看看Check if the sum of two integers in an integer array eqauls to the given number
求改进小函数面试题 -算法?
nodejs performance两道M软件大公司的最新面世算法题 (转载)
How to read binary(data) file generated by Fortran in C/C++ (转载)a simple question about constructor
generate unique integer ID from columns in SQL table (转载讨论个idea题
问一道面试题请教C++
相关话题的讨论汇总
话题: coding话题: questions话题: triangle话题: write话题: return