Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
How to Change Your Instagram Username?
Instagram is one of the most widely-used social media platforms in the world. In this article, we will see how to change your Instagram username on both the desktop and th...
Read More
TechTips
Heap | in Python | Question 9
What is the Python function used for getting the maximum element from a heap without removing it? (A)heap_peek(heap)(B)peek_heap(heap)(C)heap_get_ma...
Read More
Misc
Heap | in Python | Question 2
Which of the following is the correct way to create a heap in Python? (A)heap = [](B)heap = [1, 2, 3, 4](C)from heapq import heapify; heapify([1, 2,...
Read More
Misc
Heap | in Python | Question 7
What is the time complexity of finding the smallest element in a heap? (A)O(log n)(B)O(n)(C)O(1)(D)O(n log n) Answer: (C) ...
Read More
Misc
Heap | in Python | Question 1
What is a heap? (A)A data structure that stores data in a binary tree structure(B)A collection of data elements stored in an unordered manner(C)A st...
Read More
Misc
Doubly | Linked List in Python | Question 10
Which method is used to insert a new node at a specific position in a doubly linked list in Python? (A)insert()(B)add()(C)push()(D)append() ...
Read More
Misc
Doubly | Linked List in Python | Question 9
Which method is used to reverse a doubly linked list in Python? (A)reverse()(B)flip()(C)swap()(D)rotate() Answer: (A) ...
Read More
Misc
Doubly | Linked List in Python | Question 7
What is the time complexity of searching for an element in a doubly linked list? (A)O(1)(B)O(n)(C)O(log n)(D)O(n^2) Answer: ...
Read More
Misc
Doubly | Linked List in Python | Question 6
Which method is used to delete the first node of a doubly linked list in Python? (A)delete_first()(B)delete()(C)pop()(D)remove_first() ...
Read More
Misc
Doubly | Linked List in Python | Question 1
1. What is a doubly linked list? (A)A linked list with only one pointer to the next node(B)A linked list with two pointers, one to the previous node...
Read More
Misc
Heap | in Python | Question 6
Which of the following is the correct way to remove the smallest element from a heap? (A)heap.pop()(B)heap.remove(0)(C)from heapq import heappop; he...
Read More
Misc
Heap | in Python | Question 3
What is the time complexity of inserting an element into a heap? (A)O(log n)(B)O(n)(C)O(1)(D)O(n log n) Answer: (A) ...
Read More
Misc
Heap | in Python | Question 8
Which of the following is the correct way to find the smallest element in a heap? (A)heap[0](B)min(heap)(C)from heapq import heappush; heappush(heap...
Read More
Misc
Heap | in Python | Question 4
Which of the following is the correct way to add an element to a heap? (A)heap.append(5)(B)heap.insert(5)(C)from heapq import heappush; heappush(hea...
Read More
Misc
Doubly | Linked List in Python | Question 5
Which method is used to delete the last node of a doubly linked list in Python? (A)delete()(B)delete_last()(C)pop()(D)remove_last() ...
Read More
Misc
1
...
2805
2806
2807
...
11239