Codxplore.com

Latest news:

Sahih al-Bukhari (সহীহ বুখারী) is a free Hadith application for android. This application is advertisement free. Download now https://play.google.com/store/apps/details?id=com.akramhossin.bukharisharif

19
Views
Hacker Rank: Day 14: Scope

Hacker Rank: Day 14: Scope

Objective Today we’re discussing scope. The absolute difference between two integers, a and b, is written as |a – b|. The maximum absolute difference between two integers in a set of positive integers, elements, is the largest absolute difference between any two integers in elements. The Difference class is started for you in the editor. It has a private integer array (elements) for storin
20
Views
Hacker Rank: Day 13: Abstract Classes

Hacker Rank: Day 13: Abstract Classes

Objective Today, we will extend what we learned yesterday about Inheritance to Abstract Classes. Because this is a very specific object oriented concept, submissions are limited to the few languages that use this construct. Task Given a Book class and a Solution class, write a MyBook class that does the following: Inherits from Book    Has a parameterized constructor taking these 3 param
34
Views
Hacker Rank: Day 12: Inheritance

Hacker Rank: Day 12: Inheritance

Objective Today, we’re delving into Inheritance.  Task You are given two classes, Person and Student, where Person is the base class and Student is the derived class. Completed code for Person and a declaration for Student are provided for you in the editor. Observe that Student inherits all the properties of Person. Complete the Student class by writing the following: A Student class
33
Views
Hacker Rank: Day 11: 2D Arrays

Hacker Rank: Day 11: 2D Arrays

Objective Today, we are building on our knowledge of arrays by adding another dimension. ContextGiven a 6 x 6 2D Array, A: 1 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 We define an hourglass in A to be a subset of values with indices falling in this pattern in A‘s graphical representation: a b c d e f g There are 16 hourglasses in A, and an hourglass
19
Views
Hacker Rank: Day 10: Binary Numbers

Hacker Rank: Day 10: Binary Numbers

Objective Today, we’re working with binary numbers. Task Given a base-10 integer, n, convert it to binary (base-2). Then find and print the base-10 integer denoting the maximum number of consecutive 1‘s in n‘s binary representation. When working with different bases, it is common to show the base as a subscript. Example n = 125 The binary representation of 12510 is 11111012. In base 1
179
Views
ChatGPT: A brief look at the AI chat bot

ChatGPT: A brief look at the AI chat bot

What is ChatGPT? ChatGPT is released by Open AI, is it a text-based artificial intelligence tool. ChatGPT is powered by large amounts of data and computing techniques to make predictions to string words together in a meaningful way. ChatGPT useful for a wide range of tasks, from creating software to generating business ideas to writing a wedding toast. ChatGPT is just the first of many simil
186
Views
Hacker Rank: Day 9: Recursion 3

Hacker Rank: Day 9: Recursion 3

Recursive Method for Calculating Factorial  factorial(N) = {1/n X  factorial(N-1) N ≤ 1/otherwise Function Description Complete the factorial function in the editor below.  Be sure to use recursion. factorial has the following paramter: int n: an integer Returns int: the factorial of n Note: If you fail to use recursion or fail to name your recursive function factorial or Fac
400
Views
Postgresql find foreign key references and reset primary key serial without truncate table

Postgresql find foreign key references and reset primary key serial without truncate table

Postgresql find foreign key references and reset primary key serial without truncate table in this blog post i will try to explain how to find Postgresql foreign key references and reset primary key serial. now question is why we need to find Postgresql foreign key references and reset primary key serial ?  sometime we have a scenerio where we need to reset the primary key for business need at
319
Views
Hacker Rank: Day 8: Dictionaries and Maps

Hacker Rank: Day 8: Dictionaries and Maps

Task: Given n names and phone numbers, assemble a phone book that maps friends' names to their respective phone numbers.  You will then be given an unknown number of names to query your phone book for.  For each named queried, print the associated entry from your phone book on a new line in the form name=phoneNumber;  if an entry for name is not found, print Not found instead. Note: Your p
285
Views
implement hesabe payment gateway in Nodejs using Typescript

implement hesabe payment gateway in Nodejs using Typescript

implement hesabe payment gateway in Nodejs using Typescript in this blog post i will try explain how to implement hesabe payment gatway in Nodejs using Typescript. At first we will install two npm package hesabe-crypt-ts and aes-js. to install this two packages run the following command npm i -S hesabe-crypt-ts then npm i aes-js we have to import this two package on our typescript file as be
504
Views
How to lunch AWS serverless image handler

How to lunch AWS serverless image handler

Serverless architecture initiate cost-effective image processing in the AWS Cloud.  The architecture combines AWS services with Sharp open-source image processing software and is optimized for dynamic image manipulation. Follow the step-by-step instructions in this section to configure and deploy the Serverless Image Handler into your account. at first Launch the stack Log in to the AWS Manag
367
Views
Linux Cron Cheat Sheet

Linux Cron Cheat Sheet

Cron is a scheduling system for POSIX computers Notation Minute Hour Date Month Weekday Examples 10 * * * * At the 10th minute of every hour of every day */10 * * * * Every 10 minutes 10 14 * * * At 14:10 10 14 1 * * At 14:10 on the first day of the month 10 14 15 1 * At 14:10 on 15 January 0 2 15 10 * At 2 AM on 15 October 0 3 * 10 0 At 3 AM on all Sundays in October 0 3 * 10 1 At

Subscribe Us


Follow Us