NewUU Assignments (seniors)
481 subscribers
216 photos
12 videos
519 files
271 links
This channel is for Juniors at New Uzbekistan University!

For juniors: @newuu_assignment
For sophomores: @newuu_assignments
For freshmen: @newuu_freshmen
Math channel : @newuu_calculus
For grands: @newuu_studentScope

To contact: @umarjonqahhorov
Download Telegram
#Tutorial 2.pdf
2.2 MB
#prep_midterm #answers #calculus

It is high time to check our work , hopefully you are able to solve all of them as much as possible.✔️

Tomorrow I will send you the second homework ⚠️

P.s those answers were done by profs so you can make sure all of them are true 💯

🔔 Stay be tuned 🔔

@newuu_assignment
Please open Telegram to view this post
VIEW IN TELEGRAM
🐳1
This media is not supported in your browser
VIEW IN TELEGRAM
1711435588_Homework_3.pdf
170.1 KB
#homework_3 #calculus #prep_midterm

I will send the answers at the end of the day. ⚠️⚠️⚠️

🔔Stay be tuned 🔔

P.s don't forget sharing with your friends

@newuu_assignment
Please open Telegram to view this post
VIEW IN TELEGRAM
🐳1
This media is not supported in your browser
VIEW IN TELEGRAM
#date_struct #lab_6 #assignments

💻 Algorithms& Data structure

The answers of lab_6 ✅

Deadline | April 9 | 23:59 🖥

Sharing is caring


There is a mistake in problem 4

@newuu_assignment
Please open Telegram to view this post
VIEW IN TELEGRAM
2
problem 1
//by saidjonakr

#include<bits/stdc++.h>
using namespace std;

void heapify(int arr[], int n, int i){
int largest = i;
int l = 2 * i + 1;
int r = 2 * i + 2;

if (l < n && arr[l] > arr[largest])
largest = l;
if (r < n && arr[r] > arr[largest])
largest = r;

if (largest != i) {
swap(arr[i], arr[largest]);
heapify(arr, n, largest);
}
}

void heapSort(int arr[], int n){
for (int i = n / 2 - 1; i >= 0; i--)
heapify(arr, n, i);
for (int i = n - 1; i >= 0; i--) {
swap(arr[0], arr[i]);
heapify(arr, i, 0);
}
}

int main(){
int n;
cin >> n;
int sz1 = (n+1)/2, sz = n/2;
int a[sz1], b[sz];
for(int i = 0; i < sz; i ++){
cin >> a[i] >> b[i];
}
if(sz1!=sz) cin >> a[sz];
for(int i = sz1/2-1; i >= 0; i--){
heapify(a, sz1, i);
}
heapSort(a, sz1);
for(int i = sz/2-1;i >= 0; i--){
heapify(b, sz, i);
}
heapSort(b, sz);
for(int i = 0; i < sz1/2; i++){
swap(a[i], a[sz1-1-i]);
}
for(int i = 0; i < sz; i++){
cout << a[i] << ' ' << b[i] << ' ';
}
if(sz1!=sz) cout << a[sz];

return 0;
}
2
problem 2
//by saidjonakr

#include<bits/stdc++.h>
using namespace std;

void heapify(long long arr[], int n, int i){
int largest = i;
int l = 2 * i + 1;
int r = 2 * i + 2;

if (l < n && arr[l] > arr[largest])
largest = l;
if (r < n && arr[r] > arr[largest])
largest = r;

if (largest != i) {
swap(arr[i], arr[largest]);
heapify(arr, n, largest);
}
}

void heapSort(long long arr[], int n){
for (int i = n / 2 - 1; i >= 0; i--)
heapify(arr, n, i);
for (int i = n - 1; i >= 0; i--) {
swap(arr[0], arr[i]);
heapify(arr, i, 0);
}
}

int main(){
int n;
long long sum = 0;
cin >> n;
//n *= 2;
long long arr[n];
for(int i = 0; i < n; i++){
cin >> arr[i];
}
for(int i = n/2-1; i >= 0; i--){
heapify(arr, n, i);
}
heapSort(arr, n);
for(int i = 0; i < n; i += 2){
sum += arr[i];
}
cout << sum;
return 0;
}
3
problem 3
//by saidjonakr

#include<bits/stdc++.h>
using namespace std;

void heapify(int arr[], int n, int i){
int largest = i;
int l = 2 * i + 1;
int r = 2 * i + 2;

if (l < n && arr[l] > arr[largest])
largest = l;
if (r < n && arr[r] > arr[largest])
largest = r;

if (largest != i) {
swap(arr[i], arr[largest]);
heapify(arr, n, largest);
}
}

void heapSort(int arr[], int n){
for (int i = n / 2 - 1; i >= 0; i--)
heapify(arr, n, i);
for (int i = n - 1; i >= 0; i--) {
swap(arr[0], arr[i]);
heapify(arr, i, 0);
}
}

int main(){
int n;
cin >> n;
int arr[n];
for(int i = 0; i < n; i++){
cin >> arr[i];
}
for(int i = n/2-1; i >= 0; i--){
heapify(arr, n, i);
}
heapSort(arr, n);
int temp = 1;
for(int i = 1; i < n; i ++){
if(arr[i-1] == arr[i]){
temp ++;
}else{
if(temp >= (n+1)/2){
cout << arr[i-1];
return 0;
}
temp = 1;
}
}
cout << arr[n-1];
return 0;
}
2
problem 4
//by saidjonakr

#include<bits/stdc++.h>
using namespace std;

void heapify(long long arr[], int n, int i){
int largest = i;
int l = 2 * i + 1;
int r = 2 * i + 2;

if (l < n && arr[l] > arr[largest])
largest = l;
if (r < n && arr[r] > arr[largest])
largest = r;

if (largest != i) {
swap(arr[i], arr[largest]);
heapify(arr, n, largest);
}
}

void heapSort(long long arr[], int n){
for (int i = n / 2 - 1; i >= 0; i--)
heapify(arr, n, i);
for (int i = n - 1; i >= 0; i--) {
swap(arr[0], arr[i]);
heapify(arr, i, 0);
}
}

int main(){
int n;
cin >> n;
long long arr[n];
for(int i = 0; i < n; i++){
cin >> arr[i];
}
for(int i = n/2-1; i >= 0; i--){
heapify(arr, n, i);
}
heapSort(arr, n);
long long mn = INT_MAX;
for(int i = 1; i < n; i++){
mn = min(mn, arr[i] - arr[i-1]);
}
for(int i = 1; i < n; i++){
if(arr[i] - arr[i-1] == mn){
cout << arr[i - 1] << " " << arr[i] << endl;
}
}
return 0;
}
🐳11
This media is not supported in your browser
VIEW IN TELEGRAM
#Tutorial 3.pdf
3.4 MB
#prep_midterm #answers #calculus

It is high time to check our work , hopefully you are able to solve all of them as much as possible.✔️

Tomorrow I will send you the fourth homework ⚠️


P.s those answers were done by profs so you can make sure all of them are true 💯

🔔 Stay be tuned 🔔

@newuu_assignment
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1🐳1
This media is not supported in your browser
VIEW IN TELEGRAM
Assalomu alaykum va rahmatullohu va barokatuh
Eid al-Fitr Ramadan Eid holiday all.I congratulate you all on Eid al-Fitr. May Allah Ta'ala accept all our prayers in the month of Ramadan. Also for the next month of Ramadan. May Allah bless you with good health. God bless all of us.
🌙✨
Best wishes 🍀
@newuu_assignment
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1053
This media is not supported in your browser
VIEW IN TELEGRAM
#reminder 🔔🔔🔔
Even though today is a holiday, the day is ending so may I send assignments and resources for preparing #midterm .

Good luck all for the preparation 🕊


@newuu_assignment
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
#dig_tech #assignments

💻 Information System & Digital Technologies

The link for the task 🔗

The is a sample : Link 🔗

Deadline | April 14 | 23:59 🖥

P.s You should take it seriously because each lab gives 2 % of the total course 🕊

@newuu_assignment
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
#reminder
If you need to find materials for preparing exams
Click here ✔️✔️✔️
#midterm
#prep_midterm
#personal_suggestion

@newuu_assignment
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM