Programming

611 Articles 12 Followers


The closest to Average @ Dcoder

30 Jun 2023 1 minute read 0 comments Lochard

Problem: You are given an array, you have to find the closest integer to its average, look it has to be closest,not just the truncated version of the average. Input: First line contains n , number of elements of array, next line contains n integer se...

Find me the divisor count @ Dcoder

27 Jun 2023 1 minute read 0 comments Lochard

Problem: Cody was solving a programming puzzle in Dcoder, and as always he is unable to do it alone. Puzzle statement is You are given three integers l,h,d and you have to find that how many integers between l and h (inclusive) are divisible by d.Let...

Square of squares @ Dcoder

26 Jun 2023 1 minute read 0 comments Lochard

Problem: You have a hobby of building blocks. You are especially fond of building blocks that are squares. And what you even like more, is to arrange them into a square of square building blocks! /n However, sometimes, you are unable to achieve this...

The Report Card! @ Dcoder

23 Jun 2023 1 minute read 0 comments Lochard

Problem: Priyanka is Professor at Zing University. Help the professor in assigning grades to her students.   The mean score of three subjects is to graded into 'A', 'B', 'C' or 'D' or 'F' depending upon the marks scored.   For the score >90 and score...

[ EN | PT ] Grasshopper will cease to exist - Grasshopper vai deixar de existir

7 Jun 2023 1 minute read 0 comments lingy

Well, that's it, Google has a programming teaching project for children and teenagers similar to FreeCodeCamp which is called Grasshopper. Like FreeCodeCamp, Grasshopper has the proposal to teach web programming in a simple and fun way, but with a m...

The Secure function : Xr @ Dcoder

4 Jun 2023 1 minute read 0 comments Lochard

Title: The Secure function : Xr Problem: Cody is learning cryptography and security.The security book starts with a mathematics based problem. Say set X is collection of elements, for example X = {1,2,3} . Given 2 sets X and Y, We define a function f...

Hacking Glover 2.

2 Jun 2023 5 minute read 0 comments Lameshark

Today, we are going to hack the beta game Glover 2, which was never officially released. Several versions of the game were released online, the latest build was released in 2012 by Team Carrot. This version is incomplete, but the story mode is partly...

Exponentia! @ Dcoder

1 Jun 2023 1 minute read 0 comments Lochard

Problem: Create a code that allows people to learn about exponents. The task is to write a code which takes an integer number as an input and returns the values ranging from that of 2(two) raised to power 0(zero) to 2(two) raised to power n(the numbe...

Building a Header in HTML, CSS, JavaScript, and React

31 May 2023 2 minute read 3 comments programmer22

  Introduction A website's header is an essential part of its design and functionality. It is the first thing users see when they visit a website, and it is responsible for providing navigation to other pages and even searching for content. In this t...

Build a Table in Next.js, Typescript, Tailwindcss, react-table

31 May 2023 3 minute read 0 comments programmer22

Build a Table in Next.js Typescript, Tailwindcss, react-table Skill Level: Beginner - Intermediate Introduction When working on a web application, it is common to need to display data in a table format. This can be achieved in React by using a libr...