• Oct 31, 2021 •aedrarian
0 likes • 4 views
##README: Rename file to "data" (no extension) and delete this line 4 4.55 5 5.70 6 6.80 7 7.95 8 9.10 9 10.20 10 11.35 11 12.50 12 13.60 13 14.75 14 15.90 15 17 16 18.15 17 19.30 18 20.40 19 21.55 20 22.70 21 23.80 22 24.95 23 26.10 24 27.25 25 27.80 26 28.95 27 30.10 28 31.20 29 32.35 30 33.50 35 39.15 40 44.80 45 50.50 50 55.60 60 67 70 78.30 75 83.45 80 89.10 90 100.45 100 111.25 125 139 150 166.85 200 222.50
• Aug 7, 2024 •naiferomar366-60ef
0 likes • 2 views
aaaa
• Aug 27, 2024 •vercetti322
0 likes • 6 views
#include <iostream> #include <vector> #include <algorithm> #include <cstdlib> #include <ctime> using namespace std; // Function to generate random numbers vector<int> generateRandomNumbers(int count, int minValue, int maxValue) { vector<int> numbers; for (int i = 0; i < count; ++i) { numbers.push_back(rand() % (maxValue - minValue + 1) + minValue); } return numbers; } // Function to print a vector of integers void printVector(const vector<int>& vec) { for (int num : vec) { cout << num << " "; } cout << endl; } // Function to sort and display numbers void sortAndDisplayNumbers(vector<int>& numbers) { sort(numbers.begin(), numbers.end()); cout << "Sorted numbers: "; printVector(numbers); } int main() { // Seed the random number generator srand(static_cast<unsigned int>(time(0))); int count, minValue, maxValue; cout << "Enter the number of random numbers to generate: "; cin >> count; cout << "Enter the minimum value: "; cin >> minValue; cout << "Enter the maximum value: "; cin >> maxValue; // Generate random numbers vector<int> numbers = generateRandomNumbers(count, minValue, maxValue); // Display unsorted numbers cout << "Unsorted numbers: "; printVector(numbers); // Sort and display sorted numbers sortAndDisplayNumbers(numbers); return 0; }
• Mar 12, 2026 •prakhar.dev101-263b
0 likes • 9 views
class Solution { public: bool isGoodLength(int len, string& s) { } string longestPalindrome(string s) { int l = 1; // a string of length 1 can always be a pallindrome int r = s.length() + 1; // it is impossible to find a string of length s.length() + 1, leave alone pallindromic while(r > l + 1) { int mid = l + (r - l) / 2; if(isGoodLength(mid, s)) { l = mid; } else { r = mid; } } } };
• Feb 21, 2025 •leafboo
console/log
• Nov 18, 2022 •AustinLeath
0 likes • 11 views
#!/bin/bash yum -y install httpd systemctl enable httpd systemctl start httpd hostname > /var/www/html/index.html