GeeksforGeeks
17.4K subscribers
1.83K photos
34 videos
24 files
2.76K links
Official Hub ✅

Your coding haven – where tech meets simplicity.

Discover:
😂 Coding Laughter
📘 Curated Study Material
💎 Exclusive Offers

Utilize every service we provide and make a promise to find better opportunities for yourself! #gfgkarlohojayega!
Download Telegram
Job-A-Thon 20
Dimensionless is hiring for NLP intern.

Location - Navi Mumbai (Vashi) | WFO
Experience - Internship
Apply by - As per industry standard

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/dimensionless-job-a-thon20-nlp-intern?utmsource=discord&utm_medium=marketingteam_gfgmain&utm_campaign=dimensionlessjobathon20

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
Job-A-Thon 20
Qservices Inc is hiring for React Native Developer.

Location - Mohali, Punjab
Experience - Internship
Apply by - 10 K - 15 K

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/qservices-inc-job-a-thon20-react-native-developer?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=jobathon20reactnative

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
Must Learn!💡
One of the most fundamental components of forming decisions and solving problems is having the capacity for critical thinking.

In this article, we’ll talk about the importance of critical thinking and a few ways to sharpen this skill.

Link- https://www.geeksforgeeks.org/how-to-unlock-the-power-of-critical-thinking-7-proven-ways/?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=7provenways
Problem Of The Day
"Trace Path"

Solve the problem to win points

There is a rectangular path for a Train to travel consisting of n rows and m columns. The train will start from one of the grid's cells and it will be given a command in the form of string s consisting of characters L, R, D, U. Find if it is possible to travel the train inside the grid only.

Note:
If the train is at position (i,j)
on taking 'L' it goes to (i,j-1),
on taking 'R' it goes to (i,j+1),
on taking 'D' it goes to (i-1,j),
on taking 'U' it goes to (i+1,j).

Example 1:
Input:
n = 1, m = 1
s = "R"
Output: 0
Explaination: There is only one cell(1,1). So train can only start from (1,1). On taking right(R) train moves to (1,2), which is out of grid.
Therefore there is no cell from where train can start and remain inside the grid after tracing the route.

Example 2:
Input:
n = 2, m = 3
s = "LLRU"
Output: 1
Explaination: One possible cell is (1,3)
(1,3) --> (1,2) --> (1,1) --> (1,2) --> (2,2). Thus there is a cell from where if train starts, it remains inside the grid throughout tracing the route.

Your Task:
You do not need to read input or print anything. Your task is to complete the function isPossible() which takes n, m and s as input parameters and returns 1 if there is such a cell for which the train always remains inside the grid. Otherwise returns 0.

Expected Time Complexity: O(|s|)
Expected Auxiliary Space: O(1)

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/trace-path3840/1

Powered by hirist.com
👍2
Job-A-Thon 20
Cybermind Works is hiring for Backend Developer.

Location - Chennai
Experience - Fresher
Apply by - May 21, 2023

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/Cyberminds-Backend-Developer-Job-A-Thon-20?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=Cyberminds-Backend-Developer-Job-A-Thon-20

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
👍1
Job-A-Thon 20
Flipshope is hiring for React Native Intern.

Location - Jaipur, Rajasthan
Experience - Internship + PPO
Apply by - 10 K - 20 K

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/flipshope-developerhiring-job-a-thon20-reactnative?utm_source=discord&utm_medium=marketingteam_gfgmain&utm_campaign=flipshopedeveloperhiringjobathon20

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
Must Learn!💡
Millions of users have embraced AI technology and have been utilizing them to produce marvels.

When the world was unable to shrug off Chat GPT’s magic, Auto GPT came rolling over with its array of technology.

Want to know every little detail about Auto GPT? You are just at the right place! This article will serve you the piping hot GP(Tea).

Link- https://www.geeksforgeeks.org/what-is-autogpt-and-how-to-use-it/?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=autogpt
Job-A-Thon 20
Qservices is hiring for Software Engineer Intern.

Location - Mohali, Punjab
Experience - Internship
Apply by - May 21, 2023

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/qservices-inc-job-a-thon20-software-engineer?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=qservices-inc-job-a-thon20-software-engineer

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
Problem Of The Day
"Find number of closed islands"

Solve the problem to win points

Given a binary matrix mat[][] of dimensions NxM such that 1 denotes land and 0 denotes water. Find the number of closed islands in the given matrix.

Note: A closed island is a group of 1s surrounded by only 0s on all the boundaries (except diagonals). In simple words, a closed island is an island whose none of the 1s lie on the edges of the matrix.

Example 1:
Input:
N = 5, M = 8
mat[][] = {{0, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 1, 1, 1, 0, 0, 1},
{0, 1, 0, 1, 0, 0, 0, 1},
{0, 1, 1, 1, 1, 0, 1, 0},
{1, 0, 0, 0, 0, 1, 0, 1}}
Output:
2
Explanation:
mat[][] = {{0, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 1, 1, 1, 0, 0, 1},
{0, 1, 0, 1, 0, 0, 0, 1},
{0, 1, 1, 1, 1, 0, 1, 0},
{1, 0, 0, 0, 0, 1, 0, 1}}
There are 2 closed islands. The islands in dark are closed because they are completely surrounded by 0s (water). There are two more islands in the last column of the matrix, but they are not completely surrounded by 0s. Hence they are not closed islands.

Example 2:
Input:
N = 3, M = 3
mat[][] = {{1, 0, 0},
{0, 1, 0},
{0, 0, 1}}
Output:
1
Explanation:
mat[][] = {{1, 0, 0},
{0, 1, 0},
{0, 0, 1}}
There is just a one closed island.

Your task:
You dont need to read input or print anything. Your task is to complete the function closedIslands() which takes two integers N and M, and a 2D binary matrix mat as input parameters and returns the number of closed islands.

Expected Time Complexity: O(N*M)
Expected Auxiliary Space: O(N*M)

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/find-number-of-closed-islands/1

Powered by hirist.com
👍3
Job-A-Thon 20
Dimensionless Technologies is hiring for Cloud development Intern.

Location - Navi Mumbai (Vashi) | Work from Office
Experience - Internship
Apply by - May 21, 2023

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/dimensionless-job-a-thon20-cloud-intern?utm_source[…]gfgmain&utm_campaign=jobathon20dimensionslessjobathon20

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
👍1
Job-A-Thon 20
Flipshope is hiring for PHP Intern.

Location - Navi Mumbai (Vashi) | Work from Office
Experience - Internship + PPO
Apply by - May 21, 2023

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/flipshope-developerhiring-job-a-thon20-php?utm_sou[…]gfgmain&utm_campaign=flipshopedeveloperhiringjobathon20

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
Job-A-Thon 20
Qservices Inc is hiring for QA engineer.

Location - Mohali, Punjab
Experience - Internship
Apply by - May 21, 2023

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/qservices-inc-job-a-thon20-qa-engineer?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=jobathon20qaengineer

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
👍3😁1
Problem Of The Day
"Find k-th smallest element in given n ranges"

Solve the problem to win points

Given n ranges of the form [p, q] which denotes all the numbers in the range [p, p + 1, p + 2,...q]. Given another integer q denoting the number of queries. The task is to return the kth smallest element for each query (assume k>1) after combining all the ranges.
In case the kth smallest element doesn't exist return -1.

Example 1:
Input:
n = 2, q = 3
range[] = {{1, 4}, {6, 8}}
queries[] = {2, 6, 10}
Output:
2 7 -1
Explanation:
After combining the given ranges,
the numbers become 1 2 3 4 6 7 8. As here 2nd
element is 2, so we print 2. As 6th element is
7, so we print 7 and as 10th element doesn't
exist, so weprint -1

Example 2:
Input:
n = 2, q = 2
range[] = {{2, 6}, {5, 7}}
queries[] = {5, 8}
Output:
6 -1
Explantion:
After combining the ranges, we'll take Union of
range= {2,3,4,5,6,7}, here 5th smallest number
will be 6 and 8th smallest number does not exists.

Your Task:
You don't need to read input or print anything. Your task is to complete the function kthSmallestNum() which takes a n * 2 array denoting the ranges and an array denoting the queries.

Expected Time Complexity: O(nlogn+q*n)
Expected Auxiliary Space: O(q)

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/find-k-th-smallest-element-in-given-n-ranges/1

Powered by hirist.com
👍2
Job-A-Thon 20
Flipshope is hiring for Javascript developer.

Location - Jaipur, Rajasthan
Experience - Internship + PPO
Apply by - May 21, 2023

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/flipshope-developerhiring-job-a-thon20-js?utm_sour[…]arketingteam_gfgmain&utm_campaign=flipshopejobathon20js

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
Must Learn!💡
We are currently living in the age of AI. Images to automate processes including image generation for logos, advertisements, stock images, etc.

So here we will use OpenAI to generate Images with Python [ChatGPT API]. To learn the process give a read to this article.

Link- https://www.geeksforgeeks.org/generate-images-with-openai-in-python/?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=openaiinpython
Job-A-Thon 20
Dimensionless Technologies is hiring for UI Developer Intern.

Location - Navi Mumbai (Vashi) | Work from Office
Experience - Internship
Apply by - May 21, 2023

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/dimensionless-job-a-thon20-ui-intern?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=jobathon20uiintern

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
Hey Geeks! Join our first-ever Twitter Spaces podcast

👉 Today at 6 PM.

👉 In conversation with Shikhar Goel (CTO of GeeksforGeeks), Aanshul Sadaria (Software Engineer 3 at Google) & Harshit Jain ( Senior Software Engineer at Intuit)

Click here to Join : https://twitter.com/i/spaces/1jMJgLvvdZwxL
Job-A-Thon 20
Flipshope is hiring for Flutter Developer Intern.

Location - Jaipur, Rajasthan
Experience - Internship + PPO
Apply by - May 21, 2023

Apply via the following link and share the opportunity with your friends- https://practice.geeksforgeeks.org/jobs/flipshope-developerhiring-job-a-thon20-flutter?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=jobathonflutter

Also, do not miss the chance to get endless opportunities at Jobs Fair 2023 (Exclusively for Students) - https://www.geeksforgeeks.org/jobs?tab=studentjobfair
👍2
Problem Of The Day
"Hands of Straights"

Solve the problem to win points

Alice has some cards, each card has one number written on it. She wants to rearrange the cards into groups so that each group is of size groupSize, and consists of groupSize consecutive cards.
Given an integer array hand of size N where hand [ i ] is the value written on the ith card and an integer groupSize, return true if she can rearrange the cards, or false otherwise.

Example 1:
Input:
N = 9
groupSize = 3
hand[ ] = {1, 2, 3, 6, 2, 3, 4, 7, 8}
Output: true
Explanation:
Alice's hand can be rearranged as {1, 2, 3} , {2, 3, 4}, {6, 7, 8}. There are three groups with size 3. Each group has 3 consecutive cards.

Example 2:
Input:
N = 5
groupSize = 2
hand[ ] = {1, 2, 3, 4, 5}
Output: false
Explanation:
Alice's hand cannot be rearranged into groups of 2. Since there are 5 cards and 5 cards cannot be divided into groups of 2.

Your Task:
You don't need to read input or print anything. Your task is to complete the function isStraightHand() which takes the interger N, integer groupSize and an integer array hand as parameters and returns the true if specified arrangement is possible.

Expected Time Complexity: O(Nlog(N))
Expected Auxiliary Space: O(N)

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/hands-of-straights/1

Powered by hirist.com
👍2
Looking to learn a new skillset this summer? We've got you covered!
.
.
Register for the free workshop today and learn to create interactive full fledged projects in Python programming language.
.
.
Share with your siblings and friends who might be interested and help them discover the powerful world of Programming!
.
.
Register Now: https://bit.ly/3Ip1TCk
❤1