GrandCoder-Img

Elevate Your Coding Skills

Elevate Your Coding Skills

  • Home
  • Programming Language
    • Java Code
    • Documentation
  • Grand Coder Product
    • Grand Coder Jobs
    • Grand Coder Forum
    • Grand Coder Campus
  • Blog
  • Contact Us
  • Guest Post
  • About Us
Quadrants in java

Quadrants in java

November 29, 2022
by Grand Coder Java Code

A common problem in mathematics is to determine which quadrant a given point lies in. There are four quadrants, numbered from 1 to 4, as shown in the diagram below: For example, the point A, which is at coordinates (12,5) lies in quadrant 1 s ...

Read More
Funny Divisors in java

Funny Divisors in java

November 28, 2022
by Grand Coder Java Code

Ninja is bored with his previous game of numbers, so now he is playing with divisors. He is given 'N' numbers, and his task is to return the sum of all numbers which is divisible by 2 or 3. Let the number given to him be - 1, 2, 3, 5, 6. As 2, 3, ...

Read More
Insertion Sort 2 in java

Insertion Sort 2 in java

November 27, 2022
by Grand Coder Java Code

In Insertion Sort Part 1, you inserted one element into an array at its correct sorted position. Using the same approach repeatedly, can you sort an entire array? Guideline: You already can place an element into a sorted array. How can you use th ...

Read More
Print Repeated Elements in Sorted Order in java

Print Repeated Elements in Sorted Order in java

November 26, 2022
by Grand Coder Java Code

You are given an array A of size N. The array contains almost distinct elements with some duplicated. You have to print the elements in sorted order which appears more than once. If no such element exist print -1. Input Format T ...

Read More
Sara's Strings in java

Sara’s Strings in java

November 25, 2022
by Grand Coder Java Code

Sara does not like strings that have both the uppercase and the lowercase characters. She thinks only those strings are good which have only lowercase characters( wherever possible) or only uppercase characters( wherever possible). Given a string ...

Read More
Remove Zeroes in java

Remove Zeroes in java

November 24, 2022
by Grand Coder Java Code

You are given a string s. Each character is either 0 or 1. You want all 1s in the string to form a contiguous subsegment. For example, if the string is 0, 1, 00111 or 01111100, then all ones (1) form a contiguous subsegment, and if the string is ...

Read More
Find First and Last Position of Element in Sorted Array in java

Find First and Last Position of Element in Sorted Array in java

November 23, 2022
by Grand Coder Java Code

Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found in the array, print. You must write an algorithm with O(log n) runtime complexity. Input F ...

Read More
CHECK IF TWO ARRAYS ARE EQUAL OR NOT in java

CHECK IF TWO ARRAYS ARE EQUAL OR NOT in java

November 22, 2022
by Grand Coder Java Code

Given two arrays A and B of equal size n, the task is to find if given arrays are equal or not. Two arrays are said to be equal if both of them contain same set of elements, arrangements (or permutation) of elements may be different though. Note ...

Read More
Print Matrix in snake Pattern in java

Print Matrix in snake Pattern in java

November 21, 2022
by Grand Coder Java Code

Given a matrix of size N x N. Print the elements of the matrix in the snake like pattern depicted below. Your task is to complete the function printSnakePattern which receives the input matrix and N as its p ...

Read More
Array Rotation in java

Array Rotation in java

November 20, 2022
by Grand Coder Java Code

John Watson knows of an operation called a right circular rotation on an array of integers. One rotation operation moves the last array element to the first position and shifts all remaining elements right one. To test the abilities of Sherlock , Wa ...

Read More
  • First
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • ...
  • 20
  • Next
  • Last

270189202_619051836075418_5115859421913271294_n

Abdul Ragib

PROGRAMMER & BLOGGER

Inspiring coder with ability to learn new technology. Helping others to improve their coding skills to be a good Coder. Always want to work on creative.

SUBSCRIBE & FOLLOW

Group-1471
Group-1472
Group-1473
download

MUST-READ ARTICLES

  • RoadMap of Full Stack BlockChain Developer

    Complete Roadmap for Full Stack Blockcha...

    December 10, 2022
    web

    Best Web Development Projects for Beginn...

    June 15, 2022
    MERN Stack Development

    RoadMap of MERN Stack Development

    December 11, 2022
    How to learn c programming - GrandCoder

    The Ultimate Guide to Programming in C

    June 8, 2022

Join The Newsletter

You Will Receive The Latest News And Update On Your Favorite.

cropped-Grand-Coder-3-1-3.png

GrandCoder is a Programming Content Providing Website which provide best content on different different Programming languages, Web Development and Tech news.

  • Disclaimer
  • Privacy Policy
  • Refund Policy
  • Terms & Conditions
  • Shipping & Delivery Policy

Recent Posts

Building a Strong Programming Background: Tips and Strategies for Success

January 28, 2023
by Grand Coder

Programming Languages Python: Mastering the Dynamic and Versatile in 2023

January 24, 2023
by Grand Coder

CONTACT

Bihar

info@grandcoder.in contact@grandcoder.in

COPYRIGHT © 2021-2023 GrandCoder
Shopping Basket
Welcome to GrandCoder
Enter your email address

Thanks, I’m not interested