私はリストを使用してC#でマージソートアルゴリズムに取り組んでおり、私は奇妙なエラーが発生します。 class SortingAlgorithms
{
public static List<int> mergeSort(List<int> array)
{
if (array.Count == 1)
return array;
List
以下に示すように、マージソート関数を作成しようとしました。しかし、テストしようとすると、エラーが発生します。 the name mergesort is not defined
このエラーの原因を誰かが指摘できますか? def merge(self,a,b):
sorted_list=[]
while len(a)!=0 and len(b)!=0:
if