需要以任何语言或C语言进行查询的代码 [英] Need code for query in any language or c sharp

查看:86
本文介绍了需要以任何语言或C语言进行查询的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何返回按降序排列的a和b中所有元素的并集.
您不得使用C#的任何本机排序功能,例如SortedList或.OrderBy().
您的变量只能是基元(显然是结果的整数数组).

How can we return the union of all elements in a and b, sorted in descending order.
You may not use any native sorting functionality of C#, such as SortedList or .OrderBy().
Your variables may only be primitives (and obviously an integer array for the result).

推荐答案

这显然是您的功课,因此您可以自行解决.尝试用数学术语找出来,写下导致解决方案的步骤,然后将其转换为代码.
This is obviously your homework so it is up to you to solve it. Try figuring it out in mathematical terms, write down the steps that lead to your solution and then convert that to code.


这篇关于需要以任何语言或C语言进行查询的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆