Skip to content
  • Home
  • Contact Us
  • About Us
  • Privacy Policy
  • DMCA
  • Linkedin
  • Pinterest
  • Facebook
thecscience

TheCScience

TheCScience is a blog that publishes daily tutorials and guides on engineering subjects and everything that related to computer science and technology

  • Home
  • Human values
  • Microprocessor
  • Digital communication
  • Networking
  • Toggle search form

Category: coding problems

HackerRank Java Exception Handling problem solution

In this HackerRank Java Exception Handling problem solution, you need to complete the function power in class MyCalculator and return the appropriate result after the power operation or an appropriate exception. HackerRank Java Exception Handling problem solution.

coding problems

HackerRank Java Exception Handling (Try-catch) problem solution

In this HackerRank Java Exception Handling (Try-catch) problem solution you will be given two integers x and y as input, you have to compute x/y. If x and y are not 32 bit signed integers or if y is zero, an exception will occur and you have to report it. Read sample Input/Output to know…

Read More “HackerRank Java Exception Handling (Try-catch) problem solution” »

coding problems

HackerRank Java Iterator problem solution

In this HackerRank Java Iterator problem solution, you need to complete a method func. The method takes an ArrayList as input. In that ArrayList there are one or more integer numbers, then there is a special string “###”, after that there are one or more other strings  HackerRank Java Iterator problem solution.

coding problems

HackerRank Java Instanceof keyword problem solution

In this HackerRank Java Instanceof keyword problem solution, we need to add some lines of the code that are missing, and you have to fix it by modifying only 3 lines! Don’t add, delete or modify any extra line. HackerRank Java Instanceof keyword problem solution.

coding problems

HackerRank Java Method Overriding 2 (Super Keyword) problem solution

In this HackerRank Java Method Overriding 2 (Super Keyword) problem solution, we need to modify the code so that the code prints the text on the output screen. HackerRank Java Method Overriding 2 (Super Keyword) problem solution.

coding problems

HackerRank Java Method Overriding problem solution

In this HackerRank Java Method Overriding problem, we need to complete the code in your editor by writing an overridden getNumberOfTeamMembers method that prints the same statement as the superclass getNumberOfTeamMembers method, except that it replaces n with 11 (the number of players on a soccer team). HackerRank Java Method Overriding problem solution.

coding problems

HackerRank Java Interface problem solution

In this HackerRank Java Interface problem solution, you are given an interface AdvancedArithmetic which contains a method signature int divisor_sum(int n). You need to write a class called MyCalculator which implements the interface. HackerRank Java Interface problem solution.

coding problems

HackerRank Java Abstract Class problem solution

In this HackerRank Java Abstract Class problem solution, we need to create another class MyBook that extends the abstract class. and then we need to create an instance of the new class. HackerRank Java Abstract Class problem solution.

coding problems

HackerRank Java Inheritance II problem solution

In this HackerRank Java Inheritance II problem solution, we need to write a class named Arithmetic with a method named add that takes 2 integers as parameters and returns an integer denoting their sum. a class named Adder that inherits from a superclass named Arithmetic. HackerRank Java Inheritance II problem solution.

coding problems

HackerRank Java Inheritance I problem solution

In this HackerRank Java Inheritance I problem solution we need to add a sing method to the Bird class, then modify the main method accordingly so that the code prints the lines on the separate line. HackerRank Java Inheritance I problem solution.

coding problems

HackerRank Java Priority Queue problem solution

In this HackerRank Java Priority Queue problem solution you need to create a Student class and with constructor Student, method getID(), getName(), and a getCGPA(). HackerRank Java Priority Queue problem solution.

coding problems

HackerRank Java BitSet problem solution

In this HackerRank Java BitSet problem solution, you are given 2 BitSets of size N. where all bits in both BitSets are initialized to 0, perform a series of M operations.  After each operation, print the number of set bits in the respective BitSets as two space-separated integers on a new line. HackerRank Java BitSet…

Read More “HackerRank Java BitSet problem solution” »

coding problems

Posts navigation

Previous 1 2 3 … 123 Next

Copyright © 2023 TheCScience.

Powered by PressBook Grid Blogs theme