"Problem of the Day"
Solve this question to get points.
Given an array arr[] of N integers. Find the contiguous sub-array(containing at least one number) which has the minimum sum and return its sum.
Full Problem: https://bit.ly/3QhX1QP
Solve this question to get points.
Given an array arr[] of N integers. Find the contiguous sub-array(containing at least one number) which has the minimum sum and return its sum.
Full Problem: https://bit.ly/3QhX1QP
practice.geeksforgeeks.org
Smallest sum contiguous subarray | Practice | GeeksforGeeks
Given an array arr[] of N integers. Find the contiguous sub-array(containing at least one number) which has the minimum sum and return its sum.
Example 1:
Input:
arr[] = {3,-4, 2,-3,-1, 7,-5}
Output: -6
Explanatio
Example 1:
Input:
arr[] = {3,-4, 2,-3,-1, 7,-5}
Output: -6
Explanatio
❤2
Missed out on this exclusive and amazing live stream? 😕
Fret not, now you can watch 👀 this exclusive live session, where in-house mentors explained everything you need to know about Linked List on our youtube channel.
Click here to watch it now: https://youtu.be/GpyEkcGVTbY
Also, to get you SDE interview ready, many of these sessions await you. So, stay tuned! 😉
Fret not, now you can watch 👀 this exclusive live session, where in-house mentors explained everything you need to know about Linked List on our youtube channel.
Click here to watch it now: https://youtu.be/GpyEkcGVTbY
Also, to get you SDE interview ready, many of these sessions await you. So, stay tuned! 😉
"Problem of the Day"
Solve this question to get points.
You are given two arrays A and B of equal length N. Your task is to pair each element of array A to an element in array B, such that the sum of the absolute differences of all the pairs is minimum.
Full Problem: https://bit.ly/3AOttUZ
Solve this question to get points.
You are given two arrays A and B of equal length N. Your task is to pair each element of array A to an element in array B, such that the sum of the absolute differences of all the pairs is minimum.
Full Problem: https://bit.ly/3AOttUZ
practice.geeksforgeeks.org
Minimum Sum of Absolute Differences of Pairs | Practice | GeeksforGeeks
You are given two arrays A and B of equal length N. Your task is to pair each element of array A to an element in array B, such that the sum of the absolute differences of all the pairs is minimum.
Example 1:
Input:
Example 1:
Input:
Participate in our weekly Interview Series, level up your coding skills, appear on the monthly Leaderboard, redeem rewards and become an elite Geek!
Start practicing: https://practice.geeksforgeeks.org/events/rec/interview-series
Start practicing: https://practice.geeksforgeeks.org/events/rec/interview-series
👍3
"Problem of the Day"
Solve this question to get points.
You are given two arrays A and B of unique elements of size N. Check if one array is a stack permutation of the other array or not.
Full Problem: https://bit.ly/3QveWne
Solve this question to get points.
You are given two arrays A and B of unique elements of size N. Check if one array is a stack permutation of the other array or not.
Full Problem: https://bit.ly/3QveWne
practice.geeksforgeeks.org
Stack Permutations | Practice | GeeksforGeeks
You are given two arrays A and B of unique elements of size N. Check if one array is a stack permutation of the other array or not.
Stack permutation means that one array can be created from another array using a stack and stack operations
Stack permutation means that one array can be created from another array using a stack and stack operations
👍1
It nearly cost around USD 3 trillion to eliminate the wasteful data and it is expected to cross USD 100 Billion in the coming years.
This is the major concern that most of the businesses are facing these days. So, to handle & manage this data, there will always be need of Big Data & AI professionals.
In this article, we have listed down the best and most important skills you need to have for Big Data jobs.
Check the article: https://bit.ly/3D4ajgw
This is the major concern that most of the businesses are facing these days. So, to handle & manage this data, there will always be need of Big Data & AI professionals.
In this article, we have listed down the best and most important skills you need to have for Big Data jobs.
Check the article: https://bit.ly/3D4ajgw
"Problem of the Day"
Solve this question to get points.
Given a Binary Search Tree. Find sum of all elements smaller than and equal to Kth smallest element.
Full Problem: https://bit.ly/3TQVSm9
Solve this question to get points.
Given a Binary Search Tree. Find sum of all elements smaller than and equal to Kth smallest element.
Full Problem: https://bit.ly/3TQVSm9
www.geeksforgeeks.org
Sum of k smallest elements in BST | Practice | GeeksforGeeks
Given a Binary Search Tree. Find sum of all elements smaller than and equal to Kth smallest element.
Example 1:
Input:
20
/ \
8 22
/ \
4 12
/ \
10 14
Example 1:
Input:
20
/ \
8 22
/ \
4 12
/ \
10 14
🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
Social media has become a major part of our lives, on which we share our thoughts, ideas and sometimes our aspirations and goals.
While one has the complete freedom to do as they wish to on their personal social handles, there are still some employers that may frown upon your profiles, ideals and thoughts.
So here in this article, we have listed down some common social media mistakes that you should avoid making as a working professional.
Check the article now: https://bit.ly/3TQxssO
While one has the complete freedom to do as they wish to on their personal social handles, there are still some employers that may frown upon your profiles, ideals and thoughts.
So here in this article, we have listed down some common social media mistakes that you should avoid making as a working professional.
Check the article now: https://bit.ly/3TQxssO
👍1
"Problem of the Day"
Solve this question to get points.
Find the smallest number such that the sum of its digits is N and it is divisible by 10N.
Full Problem: https://practice.geeksforgeeks.org/problems/smallest-number-with-sum-of-digits-as-n-and-divisible-by-10n4032/1
Solve this question to get points.
Find the smallest number such that the sum of its digits is N and it is divisible by 10N.
Full Problem: https://practice.geeksforgeeks.org/problems/smallest-number-with-sum-of-digits-as-n-and-divisible-by-10n4032/1
practice.geeksforgeeks.org
Smallest number with sum of digits as N and divisible by 10^N | Practice | GeeksforGeeks
Find the smallest number such that the sum of its digits is N and it is divisible by 10N.
Example 1:
Input: N = 5
Outptut: 500000
Explanation: Sum of digits of 500000
is 5 and divisible by 105.
Example 2:
Input: N = 20
Output: 2
Example 1:
Input: N = 5
Outptut: 500000
Explanation: Sum of digits of 500000
is 5 and divisible by 105.
Example 2:
Input: N = 20
Output: 2
👍1
Java being a robust programming language still holds dominance in the tech world, that's why the demand for Java developers is also high.
If you're a fresher and looking for a job in the Java development domain, then here are some tips you must check out.
To watch the video: https://bit.ly/3BfFeVR
To know more in detail: https://bit.ly/3cZdnjs
If you're a fresher and looking for a job in the Java development domain, then here are some tips you must check out.
To watch the video: https://bit.ly/3BfFeVR
To know more in detail: https://bit.ly/3cZdnjs
Hey GEEK ARMY, 🤩
We are back with our 2nd contest of CODE FESTA CHALLENGE.
Some Rules To Follow:
✅ This is the 2nd of the fourth contest
✅ Result will be calculated after completion of all the 4 contest every week and taking the average of all the 4 contest ranks.
✅ It is must to participate in all the 4 contest to be eligible for rewards.
✅ The result will be calculated according the the number of questions solved in 40 minutes during the event timeline.
✅ This is a timed contest. Do not press back during this time as your responses then will not be considered.
✅ If two people solve the same number of questions then the person who submitted earlier will on top.
✅ You will get only one chance to submit your response.
✅ Copying of solutions is strictly prohibited.
Starting from Today Midnight! 🕛
To stay updated click on the below link
CLICK HERE: https://discord.gg/NdGvxyHG?event=1017395675606044672
We are back with our 2nd contest of CODE FESTA CHALLENGE.
Some Rules To Follow:
✅ This is the 2nd of the fourth contest
✅ Result will be calculated after completion of all the 4 contest every week and taking the average of all the 4 contest ranks.
✅ It is must to participate in all the 4 contest to be eligible for rewards.
✅ The result will be calculated according the the number of questions solved in 40 minutes during the event timeline.
✅ This is a timed contest. Do not press back during this time as your responses then will not be considered.
✅ If two people solve the same number of questions then the person who submitted earlier will on top.
✅ You will get only one chance to submit your response.
✅ Copying of solutions is strictly prohibited.
Starting from Today Midnight! 🕛
To stay updated click on the below link
CLICK HERE: https://discord.gg/NdGvxyHG?event=1017395675606044672
👍2
"Problem of the Day"
Solve this question to get points.
Given n balls . All of them are initially uncolored . You have to color the balls with two colors RED and BLUE such that there can be atmost 2 positions where a RED ball is touching BLUE ball or vice versa.
Full Problem: https://practice.geeksforgeeks.org/problems/ball-coloring3450/1
Solve this question to get points.
Given n balls . All of them are initially uncolored . You have to color the balls with two colors RED and BLUE such that there can be atmost 2 positions where a RED ball is touching BLUE ball or vice versa.
Full Problem: https://practice.geeksforgeeks.org/problems/ball-coloring3450/1
practice.geeksforgeeks.org
Ball coloring | Practice | GeeksforGeeks
Given n balls . All of them are initially uncolored . You have to color the balls with two colors RED and BLUE such that there can be atmost 2 positions where a RED ball is touching BLUE ball or vice versa. You have to color all the balls.
👍1
"Problem of the Day"
Solve this question to get points.
Find the number of occurrences of a given search word in a 2d-Array of characters where the word can go up, down, left, right and around 90 degree bends.
Full Problem: https://practice.geeksforgeeks.org/problems/count-occurences-of-a-given-word-in-a-2-d-array/1
Solve this question to get points.
Find the number of occurrences of a given search word in a 2d-Array of characters where the word can go up, down, left, right and around 90 degree bends.
Full Problem: https://practice.geeksforgeeks.org/problems/count-occurences-of-a-given-word-in-a-2-d-array/1
www.geeksforgeeks.org
Count occurrences of a given word in a 2-d array | Practice | GeeksforGeeks
Find the number of occurrences of a given search word in a 2d-Array of characters where the word can go up, down, left, right, and around 90-degree bends.
Note: While making a word you can use one cell only once.
Example 1:
Input:
R
Note: While making a word you can use one cell only once.
Example 1:
Input:
R
"Problem of the Day"
Solve this question to get points.
Given a matrix of size n*m. Every cell of matrix contains either 'A' or 'B'. Exchange is defined as swaping the characters between two cells.
Full Problem: https://bit.ly/3UeDYdp
Solve this question to get points.
Given a matrix of size n*m. Every cell of matrix contains either 'A' or 'B'. Exchange is defined as swaping the characters between two cells.
Full Problem: https://bit.ly/3UeDYdp
practice.geeksforgeeks.org
Minimum Exchange | Practice | GeeksforGeeks
Given a matrix of size n*m. Every cell of matrix contains either 'A' or 'B'. Exchange is defined as swaping the characters between two cells. Your task is to find the minimum number of exchange needed to rearrange the given matrix suc
Your programming journey starts with diving into programming languages.
Stay tuned in to get you started with your programming journey in a more structured way.
We'll begin with the Introduction to Programming Languages and share all the study material with the important article links on the specific date mentioned.
Let's cover the languages that are most important as follows:
C - 13th Sept
C++ - 14th Sept
Java - 15th Sept
Python - 16th Sept
PHP - 17th Sept
P.S. Save the dates.
Stay tuned in to get you started with your programming journey in a more structured way.
We'll begin with the Introduction to Programming Languages and share all the study material with the important article links on the specific date mentioned.
Let's cover the languages that are most important as follows:
C - 13th Sept
C++ - 14th Sept
Java - 15th Sept
Python - 16th Sept
PHP - 17th Sept
P.S. Save the dates.
❤12🔥4👍3
"Problem of the Day"
Solve this question to get points.
Given a Binary Search Tree. Convert a given BST into a Special Max Heap with the condition that all the values in the left subtree of a node should be less than all the values in the right subtree of the node.
Full Problem: https://bit.ly/3QISK8V
Solve this question to get points.
Given a Binary Search Tree. Convert a given BST into a Special Max Heap with the condition that all the values in the left subtree of a node should be less than all the values in the right subtree of the node.
Full Problem: https://bit.ly/3QISK8V
practice.geeksforgeeks.org
BST to max heap | Practice | GeeksforGeeks
Given a Binary Search Tree. Convert a given BST into a Special Max Heap with the condition that all the values in the left subtree of a node should be less than all the values in the right subtree of the node. This condition is applied on all th
👍1
C Programming Langauge: Part 1
Introduction:
C is a procedural programming language with features like:
- low-level access to memory,
- simple set of keywords, and
- clean style.
Many later languages have borrowed syntax/features directly or indirectly from the C language. Like syntax of Java, PHP, JavaScript, and many other languages are mainly based on the C language. C++ is nearly a superset of C language.
Variables and Data Types:
Variables:
Basically, a variable is used to store some form of data while keywords are reserved words whose meaning is already known to the compiler. Find more about variables here: https://bit.ly/3qzvz6A
Data Types: The data type is a collection of data with values having fixed values, meaning as well as its characteristics. Each variable in C has an associated data type.
To get into more details about different types of data types, check this: https://bit.ly/3qyyKLH
Go from basics to advance in just a click: https://bit.ly/3U97WPF
Introduction:
C is a procedural programming language with features like:
- low-level access to memory,
- simple set of keywords, and
- clean style.
Many later languages have borrowed syntax/features directly or indirectly from the C language. Like syntax of Java, PHP, JavaScript, and many other languages are mainly based on the C language. C++ is nearly a superset of C language.
Variables and Data Types:
Variables:
Basically, a variable is used to store some form of data while keywords are reserved words whose meaning is already known to the compiler. Find more about variables here: https://bit.ly/3qzvz6A
Data Types: The data type is a collection of data with values having fixed values, meaning as well as its characteristics. Each variable in C has an associated data type.
To get into more details about different types of data types, check this: https://bit.ly/3qyyKLH
Go from basics to advance in just a click: https://bit.ly/3U97WPF
👍4
Introduction to C Programming Language: Part 2
Basic Input and Output in C:
C language has standard libraries that allow input and output in a program. The stdio.h or standard input output library in C has methods for input and output.
Learn about:
- How to take the input and output of basic types in C?
- How to take input and output of advanced type in C?
Check this out to learn more: https://bit.ly/3S3prPL
Operators:
The functionality of the C language is incomplete without the use of operators. Operators allow us to perform different kinds of operations on operands.
Read more about the operators & their different types here: https://bit.ly/3L6uT21
Loops:
In programming, sometimes there is a need to perform some operation more than once or (say) n number of times. Loops come into use when we need to repeatedly execute a block of statements.
Here you can find all you need to know about Loop: https://bit.ly/3Dkap3T
Go from basics to advanced in C in just a click: https://bit.ly/3U97WPF
Basic Input and Output in C:
C language has standard libraries that allow input and output in a program. The stdio.h or standard input output library in C has methods for input and output.
Learn about:
- How to take the input and output of basic types in C?
- How to take input and output of advanced type in C?
Check this out to learn more: https://bit.ly/3S3prPL
Operators:
The functionality of the C language is incomplete without the use of operators. Operators allow us to perform different kinds of operations on operands.
Read more about the operators & their different types here: https://bit.ly/3L6uT21
Loops:
In programming, sometimes there is a need to perform some operation more than once or (say) n number of times. Loops come into use when we need to repeatedly execute a block of statements.
Here you can find all you need to know about Loop: https://bit.ly/3Dkap3T
Go from basics to advanced in C in just a click: https://bit.ly/3U97WPF
❤1👍1😁1