What is the output of the following: my_string = 'geeksforgeeks' for i in range(my_string): print(i)
Anonymous Quiz
32%
0 1 2 3 β¦ 12
48%
geeksforgeeks
4%
None
16%
Error
What is the output of the code shown below? set1 = {1, 2, 3} set2 = set1.copy() set2.add(4) print(set1)
Anonymous Quiz
38%
{1, 2, 3, 4}
47%
{1, 2, 3}
12%
Invalid Syntax
3%
Error
π8
If we declare a 2-d array like β int arr[3][4], then it will stored in the format of _____
Anonymous Quiz
7%
4 rows 3 columns
6%
4 rows 4 column
8%
3 rows 3 columns
80%
3 rows 4 columns
π3
GeeksforGeeks is proud to announce Indeed as the official sponsor of our GfG Weekly Coding Contest & Problem Of The Day! Participate in them-> Win Geekbits -> Avail Exclusive Goodies!
.
.
Do check out the GeeksforGeeks Jobs Page for exclusive Job Postings by Indeed.
Watch out this space as we bring to you a 6 part guide that will help you build a career in tech!
Click to explore: https://indeedhi.re/4bu1col
#codeyourcareer
.
.
Do check out the GeeksforGeeks Jobs Page for exclusive Job Postings by Indeed.
Watch out this space as we bring to you a 6 part guide that will help you build a career in tech!
Click to explore: https://indeedhi.re/4bu1col
#codeyourcareer
β€4
Which of the following syntax correctly declares an Array in C/C++?
Anonymous Quiz
4%
int geeks;
17%
array geeks[20];
3%
geeks{20};
75%
int geeks[20];
π4π₯1
Problem Of The Day: Number of paths in a matrix with k coins
This Problem Is Sponsored by Indeed
Given a n x n matrix such that each of its cells contains some coins. Count the number of ways to collect exactly k coins while moving from top left corner of the matrix to the bottom right. From a cell (i, j), you can only move to (i+1, j) or (i, j+1).
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
This Problem Is Sponsored by Indeed
Given a n x n matrix such that each of its cells contains some coins. Count the number of ways to collect exactly k coins while moving from top left corner of the matrix to the bottom right. From a cell (i, j), you can only move to (i+1, j) or (i, j+1).
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
π6
Join our contest GFG Weekly Coding Contest #141β your go-to preparation ground!
GfG Weekly #141 is sponsored by Indeed
Click here & register for free!
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech!
#codeyourcareer
Explore Jobs on Indeed: https://indeedhi.re/4bu1col
GfG Weekly #141 is sponsored by Indeed
Click here & register for free!
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech!
#codeyourcareer
Explore Jobs on Indeed: https://indeedhi.re/4bu1col
β€3
Discover five essential DSA projects for 2024 to enhance your coding skills and build a strong portfolio. From graph algorithms to dynamic programming, these projects cover key concepts and provide valuable hands-on experience. Elevate your programming journey with these must-have projects!
Click to know: https://www.youtube.com/watch?v=NjUteXHoOXk&feature=youtu.be
Click to know: https://www.youtube.com/watch?v=NjUteXHoOXk&feature=youtu.be
π5
Problem Of The Day: Recamans sequence
This Problem Is Sponsored by Indeed
Your task is to complete the function recamanSequence() which takes n as the input parameter and returns the sequence.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
This Problem Is Sponsored by Indeed
Your task is to complete the function recamanSequence() which takes n as the input parameter and returns the sequence.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
π3
Problem Of The Day: Recursive sequence
This Problem Is Sponsored by Indeed
Your task is to complete the function sequence() which takes an integer n as an input parameter and returns the value of F(n).
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
This Problem Is Sponsored by Indeed
Your task is to complete the function sequence() which takes an integer n as an input parameter and returns the value of F(n).
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
www.geeksforgeeks.org
Recursive sequence | Practice | GeeksforGeeks
A function F is defined as follows F(n)= (1) +(2*3) + (4*5*6) ... upto n terms (look at the examples for better clarity). Given an integer n, determine the F(n).
Note: As the answer can be very large, return the answer modulo 109+7.
Example 1:
I
Note: As the answer can be very large, return the answer modulo 109+7.
Example 1:
I
Thanks to the incredible student support and motivation, we've extended the Three 90 Challenge to February 29th!
With many already receiving refunds, seize the opportunity to achieve your goals and continue your learning journey.
Don't miss out on this chance for success and growth!
With many already receiving refunds, seize the opportunity to achieve your goals and continue your learning journey.
Don't miss out on this chance for success and growth!
π₯4π2
Problem Of The Day: Clone an Undirected Graph
This Problem Is Sponsored by Indeed
Your task is to complete the function cloneGraph( ) which takes a node will always be the first node of the graph as input and returns the copy of the given node as a reference to the cloned graph.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
This Problem Is Sponsored by Indeed
Your task is to complete the function cloneGraph( ) which takes a node will always be the first node of the graph as input and returns the copy of the given node as a reference to the cloned graph.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
www.geeksforgeeks.org
Clone an Undirected Graph | Practice | GeeksforGeeks
Given a connected undirected graph represented by adjacency list, adjList[][] with n nodes, having a distinct label from 0 to n-1, where each adj[i] represents the list of vertices connected to vertex i.
Create a clone of the graph, where each n
Create a clone of the graph, where each n
β€3π1
Problem Of The Day: Find all Critical Connections in the Graph
This Problem Is Sponsored by Indeed
Your task is to complete the function criticalConnections() which takes the integer v denoting the number of vertices and an adjacency list adj as input parameters and returns a list of lists containing the Critical connections in the sorted order.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
This Problem Is Sponsored by Indeed
Your task is to complete the function criticalConnections() which takes the integer v denoting the number of vertices and an adjacency list adj as input parameters and returns a list of lists containing the Critical connections in the sorted order.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
π4
Assess your skills with the GATE Scholarship Testβa free opportunity to gauge your abilities and win a 50% scholarship.
Don't miss this chance to test your readiness for the GATE exam and propel your academic journey forward! π€π€
Don't miss this chance to test your readiness for the GATE exam and propel your academic journey forward! π€π€
β€3π2
Problem Of The Day: Count all Possible Path
This Problem Is Sponsored by Indeed
Your task is to complete the function isPossible() which takes adjacency matrix paths as an input parameter and returns 1 if it is possible to start traversing from a node, x, and come back to it after traversing all the vertices at least once, using each edge exactly once.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
This Problem Is Sponsored by Indeed
Your task is to complete the function isPossible() which takes adjacency matrix paths as an input parameter and returns 1 if it is possible to start traversing from a node, x, and come back to it after traversing all the vertices at least once, using each edge exactly once.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
π3
Problem Of The Day: Flatten BST to sorted list
This Problem Is Sponsored by Indeed
Your task is to complete the function flattenBST() which takes root node of the BST as input parameter and returns the root node after transforming the tree.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
This Problem Is Sponsored by Indeed
Your task is to complete the function flattenBST() which takes root node of the BST as input parameter and returns the root node after transforming the tree.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
π3
Secure a spot in the Top 200 of the February Leaderboard and stand a chance to secure an #SDE Internship
Find the JD & Register for free!
Donβt forget to share with your friends!
Find the JD & Register for free!
Donβt forget to share with your friends!
β€2
Problem Of The Day: Does array represent Heap
This Problem Is Sponsored by Indeed
Your task is to complete the function is MaxHeap() which takes the array arr[] and its size n as inputs and returns True if the given array could represent a valid level order representation of a Max Heap, or else, it will return False.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer
This Problem Is Sponsored by Indeed
Your task is to complete the function is MaxHeap() which takes the array arr[] and its size n as inputs and returns True if the given array could represent a valid level order representation of a Max Heap, or else, it will return False.
Solve and submit to win Geekbits and get exclusive goodies!
This POTD is Sponsored by Indeed
Indeed- your go-to-destination for all things related to job search. Upload your resume today on Indeed, and build a career in tech! #codeyourcareer