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
Complete DevOps Roadmap - Beginner to Advanced
DevOps is considered a set of practices that combines the abilities of Software Development i.e Dev and IT Operations i.e Ops together, which results in delivering top-not...
Read More
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Doubly | Linked List in Python | Question 8
Which method is used to get the length of a doubly linked list in Python? (A)count()(B)size()(C)length()(D)len() Answer: (D...
Read More
1
...
2507
2508
2509
...
10992