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
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
How to Upload JSON File to Amazon DynamoDB using Python?
Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. It offers scalability, reliability, and...
Read More
Amazon Web Services
How to Use AWS ECS to Deploy and Manage Containerized Applications?
Containers can be deployed for applications on the AWS cloud platform. AWS has a special application for managing containerized applications. Elastic Container Service (EC...
Read More
Picked
Amazon Web Services
Geeks Premier League
Geeks Premier League 2023
galgotia | contest 9 | Question 10
What is the worst case time complexity of insertion sort where position of the data to be inserted is calculated using binary search? (A)N(B)N*log(N...
Read More
Misc
galgotia | contest 9 | Question 9
Given an array arr = {5,6,77,88,99} and key = 88; How many iterations are done until the element is found? (A)1(B)3(C)4(D)2 Answer: (D) ...
Read More
Misc
galgotia | contest 9 | Question 8
What is the worst case complexity of binary search using recursion? (A)O(nlogn)(B)O(logn)(C)O(n)(D)O(n^2) Answer: (B) ...
Read More
Misc
galgotia | contest 9 | Question 6
In a scenario where the array is sorted in descending order, what modification is required for binary search to still work correctly? (A)No modifica...
Read More
Misc
galgotia | contest 9 | Question 4
In each step of binary search, the search space is reduced by: (A)One-third(B)One-fourth(C)Half(D)Two-thirds Answer: (C) Exp...
Read More
Misc
galgotia | contest 9 | Question 7
Given an input arr = {2,5,7,99,899}; key = 899; What is the level of recursion? (A)5(B)2(C)3(D)4 Answer: (C) Explanation: ...
Read More
Misc
galgotia | contest 9 | Question 5
What is the space complexity of the binary search algorithm? (A)O(1)(B)O(log n)(C)O(n)(D)O(n^2) Answer: (A) Explanation: ...
Read More
Misc
galgotia | contest 9 | Question 1
How is binary search typically employed? (A)Sorting an array.(B)Searching a sorted array(C). Searching an unsorted array(D)Sorting a linked list Ans...
Read More
Misc
galgotia | contest 9 | Question 3
What is the worst-case time complexity of binary search? (A)O(1)(B)O(log n)(C)O(n)(D)O(n^2) Answer: (B) ...
Read More
Misc
galgotia | contest 9 | Question 2
During each iteration of binary search, what does the algorithm compare the target value to? (A)Middle element of the array(B)First element of the a...
Read More
Misc
JBDL | Weekly Contest_4 | Question 25
In JDBC, which code snippet correctly closes a ResultSet, Statement, and Connection in a safe manner?[tabby title="Java"][sourcecode language="java"]ResultSet ...
Read More
Misc
JBDL | Weekly Contest_4 | Question 21
In Spring AOP, consider the following code snippet:[tabby title="Java"][sourcecode language="java"]@Before("myPointcut()")public void beforeAdvice() { // Ad...
Read More
Misc
JBDL | Weekly Contest_4 | Question 19
Consider the following JDBC code snippet:[tabby title="Java"][sourcecode language="java"]try (Connection conn = DriverManager.getConnection("jdbc:mysql://local...
Read More
Misc
1
...
2039
2040
2041
...
11269