## Coins and Triangle in Java …FTC

Chef belongs to a very rich family which owns many gold mines. Today, he brought N gold coins and decided to…

## Help Mommy out …fcukthecode

Mommy is a very active lady. She likes to keep all stuff sorted. She has developed an interesting technique of sorting…

## Bubble Sort… – FcukTheCode

ParameterDescriptionStableYesIn placeYesBest case complexityO(n)Average case complexityO(n^2)Worst case complexityO(1) The BubbleSort compares each successive pair of elements in an unordered list and…

## Sorting – fcukthecode

ParameterDescriptionStabilityA sorting algorithm is stable if it preserves the relative order of equal elements after sorting.In placeA sorting algorithm is in-place…

## Occurrences of the Given Digit in Java …fcukthecode

Calculate the number of occurrences of the given input digit in the given numbers. InputThe first line of input consists of…

## PlayStation 5 ReStock …fcukthecode

Experience lightning fast loading with an ultra-high speed SSD, deeper immersion with support for haptic feedback, adaptive triggers and 3D Audio,…

## Occurrences of the digit 4 Java .. – FTC

Kostya likes the number 4 much. Of course! This number has such a lot of properties, like: Four is the smallest…

## Huffman Coding : Change-making problem ..:- fcukthecode

Huffman Coding -: Greedy Algorithms 👇 👇 :)Link --> HUFFMAN CODING Given a money system, is it possible to give an…

## Huffman Coding – Activity Selection Problem

Huffman Coding -: Greedy Algorithms 👇 👇 :)Link --> HUFFMAN CODING The ProblemYou have a set of things to do (activities).…

## Binary Addition in Java …fcukthecode

Write a Java program to add two binary numbers. Input: Binary_1 = 010 // decimal number is 2 Binary_2 = 011…

## Selection Sorting in Java …fcukthecode

Sort the given set of numbers using Selection Sort. The first line of the input contains the number of elements, The…

## Average value of array element [Java] …ftc

Write a Java Program to Calculate the average value of array element.Refer the testcases Input: 5 5 4 3 2 1…

## Huffman Coding -: Greedy Algorithms …FTC

Huffman Coding – Activity Selection Problem👉 👉 Activity Selection Problem Huﬀman code is a particular type of optimal preﬁx code that…

## Metaverse – It is/will be the future …FTC

Alert: Watch the Anime “Sword Art Online” and the film “Ready Player one” before reading this. Metaverse is the Future. Have…

## Match string with rotated string in java …ftc

Write a java Java program to check whether one string is rotation of another string. Input: string s1: summonlord string s2:…

## Maximum occurring character in Java ..ftc

Given a string, Write an efficient java method to return maximum occurring character in the input string E.g., if input string…

## First half of the string – Java program …ftc

Write a Java program for, Given a string of even length, return the first half. Input: DrWhoHoo Output: DrW import java.io.*;…

## Java program to create a Triangle …ftc

Java program to create a Triangle. Input: 3 Output: *** ** * import java.io.*; import java.util.*; public class temp{ public static…

## Magician’s Numbers in Java …fcukthecod

This problem practices the addition of 2-digit numbers. Encourage the students to share the methods that they use to solve the…

- 1
- 2
- 3
- 4
- …
- 18
- Go to the next page