earlution

InsertionSort

Nov 6th, 2023 (edited)
8,705
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.10 KB | None | 0 0
  1. // C# program for implementation of Insertion Sort
  2. using System;
  3.  
  4. class InsertionSort {
  5.  
  6.     // Function to sort array
  7.     // using insertion sort
  8.     void sort(int[] arr)
  9.     {
  10.         int n = arr.Length;
  11.         for (int i = 1; i < n; ++i) {
  12.             int key = arr[i];
  13.             int j = i - 1;
  14.  
  15.             // Move elements of arr[0..i-1],
  16.             // that are greater than key,
  17.             // to one position ahead of
  18.             // their current position
  19.             while (j >= 0 && arr[j] > key) {
  20.                 arr[j + 1] = arr[j];
  21.                 j = j - 1;
  22.             }
  23.             arr[j + 1] = key;
  24.         }
  25.     }
  26.  
  27.     // A utility function to print
  28.     // array of size n
  29.     static void printArray(int[] arr)
  30.     {
  31.         int n = arr.Length;
  32.         for (int i = 0; i < n; ++i)
  33.             Console.Write(arr[i] + " ");
  34.  
  35.         Console.Write("\n");
  36.     }
  37.  
  38.     // Driver Code
  39.     public static void Main()
  40.     {
  41.         int[] arr = { 12, 11, 13, 5, 6 };
  42.         InsertionSort ob = new InsertionSort();
  43.         ob.sort(arr);
  44.         printArray(arr);
  45.     }
  46. }
Advertisement
Comments
  • Borfidorn
    214 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment