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

HomeJava Code

Posts in category: Java Code

Rahul And Minimum Subarray in java

Rahul And Minimum Subarray in java

November 8, 2022
by Grand Coder Java Code

Rahul is a programming enthusiast. He is currently learning about arrays/lists. One day his teacher asked him to solve a very difficult problem. The problem was to find the length of the smallest subarray(subarray is a contiguous part of an array ...

Read More
0
Priyank and Toys in java

Priyank and Toys in java

November 7, 2022
by Grand Coder Java Code

Priyanka works for an international toy company that ships by container. Her task is to the determine the lowest cost way to combine her orders for shipping. She has a list of item weights. The shipping company has a requirement that all items loade ...

Read More
0
Smaller Than Triplet Sum in java

Smaller Than Triplet Sum in java

November 6, 2022
by Grand Coder Java Code

You are given an array ARR containing N integers, and you are also given an integer TARGET. You task is to find the count of triplets i, j, k ( 0 ≤ i < j < k < N ), such that ARR + ARR + ARR ...

Read More
0
Smallest window in a string containing all the characters of another string

Smallest window in a string containing all the characters of another string

November 5, 2022
by Grand Coder Java Code

Given two strings s and t. Find the smallest substring in the string s consisting of all the characters(including duplicates) of the string t. Return -1 in case there is no such substring present. In case t ...

Read More
0
Longest Subsequence With Difference One in java

Longest Subsequence With Difference One in java

November 4, 2022
by Grand Coder Java Code

You are given an array nums of size N. Find the length of the longest subsequence of array nums such that the absolute difference between every adjacent element in the subsequence is one. Input Format First line con ...

Read More
0
Find All Anagrams in a String

Find All Anagrams in a String

November 3, 2022
by Grand Coder Java Code

Given two strings s and p, return an array of all the start indices of p's anagrams in s. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exac ...

Read More
0
Missing Numbers in java

Missing Numbers in java

November 2, 2022
by Grand Coder Java Code

Given two arrays of integers, find which elements in the second array are missing from the first array. If a number occurs multiple times in the lists, you must ensure that the frequency of that number in both lists is the same. If that is not the c ...

Read More
0
Pair sum divisible by K in java

Pair sum divisible by K in java

November 1, 2022
by Grand Coder Java CodeUncategorized

Given an array of N integers and an integer K, your task is to calculate the count of pairs whose sum is divisible by K. Input Format: The first line of input contains two integers N and K. The next line c ...

Read More
0
First Element to Occur K Times in java

First Element to Occur K Times in java

October 31, 2022
by Grand Coder Java Code

Given an array of 'n' integers. Print the first element that occurs k number of times. If there is no element that occurs for at least k number of times print -1. Input Format Line 1: contains two integers n and k. Line ...

Read More
0
Non Repeating Character in java

Non-Repeating Character in java

October 30, 2022
by Grand Coder Java Code

Given a string S consisting of lowercase Latin Letters. Find the first non-repeating character in S. Bonus:- Try solving it in O(n) time complexity and O(1) space complexity. Input Format The first line will contain the str ...

Read More
0
  • First
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 13
  • 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

  • web

    Best Web Development Projects for Beginn...

    June 15, 2022
    RoadMap of Full Stack BlockChain Developer

    Complete Roadmap for Full Stack Blockcha...

    December 10, 2022
    How to learn c programming - GrandCoder

    The Ultimate Guide to Programming in C

    June 8, 2022
    programming background

    Building a Strong Programming Background...

    January 28, 2023

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