// sending contracts to user
export async function sendContractToOtherUser(email: string | any, contract: string) {
try {
let user : any = "";
// search the users collection with the email and get the user id
// Create a reference to the users collection
const usersRef =
我有下面的插入排序,其中的数字是不同的
InsertionSort(A[1,...., n])
1 for i from 2 to n do
2 for j from 1 to i - 1 do
3 if A[i ] <= A[j ] then
4 tmp <- A[i ]
5 for k from i downto j + 1 do
6 A[k] <- A[k - 1]
7 A[j ] <- tmp
我的问题是,如果第3行中的