Skip to content
Programming is like sex. One mistake and you have to support it for the rest of your life.
FcukTheCode

LCD Monitors are good for Gaming

  • Post category:Python
  • Post comments:0 Comments

Continue ReadingLCD Monitors are good for Gaming

Coins and Triangle in Java …FTC

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingCoins and Triangle in Java …FTC

Help Mommy out …fcukthecode

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingHelp Mommy out …fcukthecode

Bubble Sort… – FcukTheCode

  • Post category:Algorithms/C/C++/Java/Linux/Python
  • Post comments:0 Comments

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…

Continue ReadingBubble Sort… – FcukTheCode

Sorting – fcukthecode

  • Post category:Algorithms
  • Post comments:0 Comments

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

Continue ReadingSorting – fcukthecode

Occurrences of the Given Digit in Java …fcukthecode

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingOccurrences of the Given Digit in Java …fcukthecode

PlayStation 5 ReStock …fcukthecode

  • Post category:Python
  • Post comments:0 Comments

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

Continue ReadingPlayStation 5 ReStock …fcukthecode

Occurrences of the digit 4 Java .. – FTC

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingOccurrences of the digit 4 Java .. – FTC

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

  • Post category:Algorithms/C/C++/Java/Linux/Python

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

Continue ReadingHuffman Coding : Change-making problem ..:- fcukthecode

Huffman Coding – Activity Selection Problem

  • Post category:Algorithms/C/C++/Java/Linux/Python
  • Post comments:0 Comments

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

Continue ReadingHuffman Coding – Activity Selection Problem

Binary Addition in Java …fcukthecode

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingBinary Addition in Java …fcukthecode

Selection Sorting in Java …fcukthecode

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingSelection Sorting in Java …fcukthecode

Average value of array element [Java] …ftc

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingAverage value of array element [Java] …ftc

Huffman Coding -: Greedy Algorithms …FTC

  • Post category:Algorithms
  • Post comments:0 Comments

Huffman Coding – Activity Selection Problem👉 👉 Activity Selection Problem Huffman code is a particular type of optimal prefix code that…

Continue ReadingHuffman Coding -: Greedy Algorithms …FTC

Metaverse – It is/will be the future …FTC

  • Post category:Linux
  • Post comments:0 Comments

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

Continue ReadingMetaverse – It is/will be the future …FTC

Match string with rotated string in java …ftc

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingMatch string with rotated string in java …ftc

Maximum occurring character in Java ..ftc

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingMaximum occurring character in Java ..ftc

First half of the string – Java program …ftc

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingFirst half of the string – Java program …ftc

Java program to create a Triangle …ftc

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingJava program to create a Triangle …ftc

Magician’s Numbers in Java …fcukthecod

  • Post category:Java
  • Post comments:0 Comments

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

Continue ReadingMagician’s Numbers in Java …fcukthecod
  • 1
  • 2
  • 3
  • 4
  • …
  • 18
  • Go to the next page
Copyright - OceanWP Theme by OceanWP