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
Overview of Scaling: Vertical And Horizontal Scaling
Given architecture is an example of a client-server based system. In this, there is a client who sends requests to the server and then the client receives a response from ...
Read More
Computer Subject
DBMS
Placements
Software Engineering
System-Design
Number of containers that can be filled in the given time
Given a number N and a time X unit, the task is to find the number of containers that are filled completely in X unit if containers are arranged in pyramid fashion as show...
Read More
Greedy
Mathematical
Puzzles
DSA
How to create customized Buttons in Android with different shapes and colors
A Button is a user interface that are used to perform some action when clicked or tapped. In this article, we will try to change the shape and color of Button to various ...
Read More
Android
Android-Button
Nearest smaller character to a character K from a Sorted Array
Given a sorted array of characters arr[] and a character K, the task is to find the character with nearest smaller ASCII value than K from the given array. Print -1 if no ...
Read More
Arrays
Strings
Binary Search
Searching
Competitive Programming
C++ Programs
ASCII
DSA
How to add Toggle Button in an Android Application
ToggleButton is basically a stop / play or on/off button with indicator light indicating the current state of ToggleButton. ToggleButton is widely used, some examples are...
Read More
Java
Internship
Android
Android-Button
Experiences
Check if N can be divided into K consecutive elements with a sum equal to N
Given an integer N, our task is to check if N can be divided into K consecutive elements with a sum equal to N. Print -1 if it is not possible to divide in this manner, ot...
Read More
Mathematical
DSA
Remove all occurrences of a character in a string | Recursive approach
Given string str, the task is to write a recursive program to remove all the occurrences of a character X in the string.Examples:Input: str = "geeksforgeeks", c = 'e'Outpu...
Read More
Strings
Competitive Programming
Recursion
Data Structures
C++ Programs
Java Programs
DSA
Implementation of Tic-Tac-Toe for 2 person game (User vs. User)
For 1-Person game (User vs. CPU), please refer Implementation of Tic-Tac-Toe gameRules of the GameThe game is to be played between two people (in this program between HUMA...
Read More
Algorithms
Project
DSA
Remove first and last character of a string in Java
Given string str, the task is to write Java Program to remove the first and the last character of the string and print the modified string.Examples:Input: str = "GeeksForG...
Read More
Strings
Java Programs
Java-StringBuilder
java-StringBuffer
Java-String-Programs
strings
DSA
Logcat Window in Android Studio
LogCat Window is the place where various messages can be printed when an application runs. Suppose, you are running your application and the program crashes, unfortunately...
Read More
Android
Android-Studio
lvalues references and rvalues references in C++ with Examples
Prerequisites: lvalue and rvalue in C++, References in C++“l-value” refers to a memory location that identifies an object. "r-value” refers to the data value that is store...
Read More
Misc
cpp-references
C++
C++-References
BottomNavigationView in Android
BottomNavigationView makes it easy for users to explore and switch between top-level views with a single tap. There should be a minimum of 3 top-level views and a maximum ...
Read More
Java
Kotlin
Android
Android-View
Implementation of lower_bound() and upper_bound() in Array of Pairs in C++
In this article we will discuss the implementation of the lower_bound() and upper_bound() in an array of pairs.lower_bound(): It returns an iterator pointing to the first ...
Read More
Arrays
cpp-array
C++ Programs
cpp-pair
DSA
Spring Boot | How to consume JSON messages using Apache Kafka
Apache Kafka is a stream processing system that lets you send messages between processes, applications, and servers. In this article, we will see how to publish JSON messa...
Read More
Java
JSON
java-advanced
Apache
Java-Spring
Add Two Numbers in C++
The addition of two numbers is a simple task in C++ that can be done using the arithmetic addition operator (+). But there are many other ways to find the sum of two numbe...
Read More
Mathematical
Recursion
School Programming
C Programs
C++ Programs
DSA
1
...
7388
7389
7390
...
11204