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
Problem Of The Day
"Find the string in grid"

Given a 2D grid of n*m of characters and a word, find all occurrences of given word in grid. A word can be matched in all 8 directions at any point. Word is said to be found in a direction if all characters match in this direction (not in zig-zag form). The 8 directions are, horizontally left, horizontally right, vertically up, vertically down, and 4 diagonal directions.

Note: The returning list should be lexicographically smallest. If the word can be found in multiple directions starting from the same coordinates, the list should contain the coordinates only once.

Example 1:

Input:
grid = {{a,b,c},{d,r,f},{g,h,i}},
word = "abc"
Output:
{{0,0}}
Explanation:
From (0,0) we can find "abc" in horizontally right direction.

Example 2:

Input:
grid = {{a,b,a,b},{a,b,e,b},{e,b,e,b}}
word = "abe"
Output:
{{0,0},{0,2},{1,0}}
Explanation:
From (0,0) we can find "abe" in right-down diagonal.
From (0,2) we can find "abe" in left-down diagonal.
From (1,0) we can find "abe" in horizontally right direction.

Your Task:
You don't need to read or print anything, Your task is to complete the function searchWord() which takes grid and word as input parameters and returns a list containing the positions from where the word originates in any direction. If there is no such position then returns an empty list.

Expected Time Complexity: O(n*m*k) where k is constant
Expected Space Complexity: O(1)

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/find-the-string-in-grid0111/1
❀1πŸ‘1
Must Learn!πŸ’‘
Data has become the primary source for the digital world to operate. Any data loss can have a massive impact on the companies’ day-to-day activities. It affects the continuity of the processes.

The following article brings to you the various Data Recovery software that are simple and free to use.

Link- https://bit.ly/3E7jiNn
πŸ‘5
🚨 Job Alert 🚨
Foxit is hiring for Software Engineer.

Location - Noida, Hybrid
Experience - 3.5 - 5 Years
Apply by - Sep 30, 2023

Apply via the following link and share the opportunity with your friends- https://bit.ly/3OKGoyj
πŸ‘3❀1
Problem Of The Day
"Multiply two strings"

Given two numbers as strings s1 and s2. Calculate their Product.

Note: The numbers can be negative and You are not allowed to use any built-in function or convert the strings to integers. There can be zeros in the begining of the numbers.

Example 1:

Input:
s1 = "0033"
s2 = "2"
Output:
66

Example 2:

Input:
s1 = "11"
s2 = "23"
Output:
253
Your Task: You don't need to read input or print anything. Your task is to complete the function multiplyStrings() which takes two strings s1 and s2 as input and returns their product as a string.

Expected Time Complexity: O(n1* n2)
Expected Auxiliary Space: O(n1 + n2); where n1 and n2 are sizes of strings s1 and s2 respectively.

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/multiply-two-strings/1
Must Learn! πŸ’‘
Competitive programming (CP) is a mind sport, where people compete against each other to solve some programming questions/logic with an efficient approach and within a time constraint.

Why Should I Do CP? This is one of the questions that students generally have. So here, we have listed several reasons for doing competitive programming.

Link- https://bit.ly/3Et9nCd
πŸ‘4
Problem Of The Day
"Palindrome String"

Given a string S, check if it is palindrome or not.

Example 1:

Input: S = "abba"
Output: 1
Explanation: S is a palindrome

Example 2:

Input: S = "abc"
Output: 0
Explanation: S is not a palindrome

Your Task:
You don't need to read input or print anything. Complete the function isPalindrome()which accepts string S and returns an integer value 1 or 0.

Expected Time Complexity: O(Length of S)
Expected Auxiliary Space: O(1)

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/palindrome-string0817/1
πŸ‘1
πŸ“’ Sale! Sale! Sale!
If you miss this F.O.M.O. sale, you'll definitely get FOMO. πŸ˜• So, do a favour to your career by grabbing the best courses of GeeksforGeeks at upto 30% discounted prices. πŸ•Ί 🎊

So, why are you waiting? Hurry up! 🀩 Pick your favourite course by clicking on the following link- https://bit.ly/F-O-M-O-OFFER
πŸ‘1
Must Learn! πŸ’‘
Cloud computing provides computing resources such as databases, storage, servers, and software solutions via the internet as per the demand. These resources help with scalability and flexibility.

It allows users to access the resources remotely with just a device and a stable internet connection. Cloud computing enables organizations to virtually use computing resources instead of investing in internal infrastructures and data centers.

The top 10 cloud computing trends are mentioned in this article. Give it a read.

Link- https://bit.ly/3QVan9s
πŸ‘2πŸ‘Ž1
Problem Of The Day
"Longest K unique characters substring"

Given a string you need to print the size of the longest possible substring that has exactly K unique characters. If there is no possible substring then print -1.

Example 1:

Input:
S = "aabacbebebe", K = 3
Output:
7
Explanation:
"cbebebe" is the longest substring with 3 distinct characters.

Example 2:

Input:
S = "aaaa", K = 2
Output: -1
Explanation:
There's no substring with 2 distinct characters.

Your Task:
You don't need to read input or print anything. Your task is to complete the function longestKSubstr() which takes the string S and an integer K as input and returns the length of the longest substring with exactly K distinct characters. If there is no substring with exactly K distinct characters then return -1.

Expected Time Complexity: O(|S|).
Expected Auxiliary Space: O(|S|).

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/longest-k-unique-characters-substring0853/1
πŸ‘5
Must Learn!πŸ’‘
Right from social media to online shopping, everything is data-driven, and this data drive the business ahead. Hence, data analysis is a crucial task that needs to be performed at every stage.

There are multiple steps in Data Analysis right from procuring the right amount of data from reliable sources to the final step of predicting relevant information from the data. Following is a detailed analysis of each of these steps and how they can be made easy with the help of ChatGPT.

Link- https://bit.ly/44qQ46I
🚨 Job Alert 🚨
Philips is hiring for Software Backend Developer.

Location - Bengaluru East, Karnataka, India
Experience - 10 - 15 Years
Apply by - Sep 22, 2023

Apply via the following link and share the opportunity with your friends - https://www.geeksforgeeks.org/jobs/philips-backed-dev?utm_source=telegram&utm_medium=marketingteam_gfgmain&utm_campaign=philipsbackeddev
Problem Of The Day
"Reverse a String"

You are given a string s. You need to reverse the string.

Example 1:

Input:
s = Geeks
Output: skeeG

Example 2:

Input:
s = for
Output: rof
Your Task:

You only need to complete the function reverseWord() that takes s as parameter and returns the reversed string.

Expected Time Complexity: O(|S|).
Expected Auxiliary Space: O(1).

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/reverse-a-string/1
πŸ‘4
Must Learn!πŸ’‘
Google Sheets API is a REST-based API that is used to perform read and write operations on Google Sheets. You can use this API with your preferred programming language such as Python, JavaScript, Dart, PHP, etc.

Google Sheets API is available for free with no additional charges. However, there is a limit on total number of viewers. If your application or website is suffering from heavy traffic, then an error message may pop up saying β€˜Error 429: Too many requests’.

Link- https://bit.ly/3srUSf4
πŸ‘2
Problem Of The Day
"Remove duplicate element from sorted Linked List"

Given a singly linked list consisting of N nodes. The task is to remove duplicates (nodes with duplicate values) from the given list (if exists).
Note: Try not to use extra space. The nodes are arranged in a sorted way.

Example 1:

Input:
LinkedList: 2->2->4->5
Output: 2 4 5
Explanation: In the given linked list
2 ->2 -> 4-> 5, only 2 occurs more
than 1 time. So we need to remove it once.

Example 2:

Input:
LinkedList: 2->2->2->2->2
Output: 2
Explanation: In the given linked list
2 ->2 ->2 ->2 ->2, 2 is the only element
and is repeated 5 times. So we need to remove
any four 2.

Your Task:
The task is to complete the function removeDuplicates() which takes the head of input linked list as input. The function should remove the duplicates from linked list and return the head of the linkedlist.

Expected Time Complexity : O(N)
Expected Auxilliary Space : O(1)

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/remove-duplicate-element-from-sorted-linked-list/1
πŸ‘1
Must Learn!πŸ’‘
Whenever you use any application or website, the components that are not visible from the front eye i.e. the logic behind contents or pages are being developed and managed by a back-end developer.

Let’s find out some of the best backend technologies that you should know while starting your career in back-end development. Below here is the backend technologies list.

Link- https://bit.ly/3YOyYyC
Problem Of The Day
"Delete nodes having greater value on right"

Given a singly linked list, remove all the nodes in the list which have any node on their right whose value is greater. (Not just immidiate Right , but entire List on the Right)

Example 1:

Input:
LinkedList = 12->15->10->11->5->6->2->3
Output: 15 11 6 3
Explanation: Since, 12, 10, 5 and 2 are
the elements which have greater elements
on the following nodes. So, after deleting
them, the linked list would like be 15,
11, 6, 3.

Example 2:

Input:
LinkedList = 10->20->30->40->50->60
Output: 60
Explanation: All the nodes except the last
node has a greater value node on its right,
so all the nodes except the last node must
be removed.

Your Task:
The task is to complete the function compute() which should modify the list as required and return the head of the modified linked list. The printing is done by the driver code,

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

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/delete-nodes-having-greater-value-on-right/1
πŸ‘2
Must Learn!πŸ’‘
UI Kits are one of the best solutions to this issue, you can estimate a project’s duration more accurately by using UI kits. It includes a basic screen mockup along with the design system, elements that can be used, and how to document them.

In this article, we’ll be looking into the Top 10 Free Figma UI Kits, which you can use to get inspired or to get started with UI design.

Link- https://bit.ly/44yFtXw
🚨 Job Alert 🚨
Webvillee Technologies is hiring for Salesforce Commerce Cloud Developer (Back - end).

Location - Remote, Hybrid, GGN, Pune, Delhi, Noida
Experience - 5 Years
Apply by - Sep 22, 2023

Apply via the following link and share the opportunity with your friends - https://www.geeksforgeeks.org/jobs/webvillee-salsforce-cloud-devs?utm_source=discord&utm_medium=marketingteam_gfgmain&utm_campaign=webvilleesalsforceclouddevs
πŸ‘2
Problem Of The Day
"Delete a Node in Single Linked List"

Given a singly linked list and an integer x.Delete xth node from the singly linked list.

Example 1:

Input: 1 -> 3 -> 4
x = 3
Output: 1 -> 3
Explanation:
After deleting the node at 3rd
position (1-base indexing), the
linked list is as 1 -> 3.

Example 2:

Input: 1 -> 5 -> 2 -> 9
x = 2
Output: 1 -> 2 -> 9
Explanation:
After deleting the node at 2nd
position (1-based indexing), the
linked list is as 1 -> 2 -> 9.

Your task:
Your task is to complete the method deleteNode() which takes two arguments: the address of the head of the linked list and an integer x. The function returns the head of the modified linked list.

Solve and submit your answer here : https://practice.geeksforgeeks.org/problems/delete-a-node-in-single-linked-list/1
πŸ‘3
Must Learn!πŸ’‘
It is pretty common in the design field as it only requires one to have skills and passion to solve complex problems through designing digital experiences.

On the other hand, some designers opt to enroll in a UI/UX design course or boot camp program and even have a design degree. Both ways lead to a successful design job.

There are many ways to learn UI/UX design, and there isn’t a right or wrong way to do so. It all boils down to understanding effective design principles and honing them through practice.

Here in this article, we’ll look at a complete roadmap for finding a job as a UI/UX designer.

Link- https://bit.ly/3soPJ7l
πŸ‘2