Algoberry
81 FOLLOWERS
Algoberry is a programming blog, focusing on PHP, C++, C, Java, Creating Software Tools, and many more.
Algoberry
11M ago
In this article I share my own blogger template which currently using in this blog. I used HTML5, CSS and Blogger tags for build blog design and its fully customize, you can modify various elements of the template, such as colors, fonts, layout, and background. Additionally, you can add widgets, gadgets, and HTML code to further personalize your blog. It includes various components, such as header, footer, sidebar, post area, and navigation menus. It defines the placement of these components, as well as the styling, colors, fonts, and other visual elements used throughout the blog.
You can g ..read more
Algoberry
11M ago
Code syntax highlighter is a tool or library that adds color and formatting to source code, making it easier to read and understand. It highlights different parts of the code based on their syntax, such as keywords, variables, comments, and strings, by applying different colors or styles to each element.It helps programmers quickly identify and differentiate between different language constructs, which can aid in detecting errors and understanding the code structure.
You can get the complete code from Github
highlighter.class.php
1 <?php
2 include_once("keywords.php");
3 class Highlig ..read more
Algoberry
11M ago
This snake game that is played automatically by a Javascript rather than by a human player. The snake's movements would be determined by an algorithm, rather than being controlled by the player.The objective of the game is to navigate the snake and eat food items that appear on the screen. As the snake consumes food, it grows longer. The game becomes progressively more challenging as the snake grows longer, making it harder to navigate without self-collision.
You can get the complete code from Github
The snake game typically consists of the following elements:
Board: Playing area where the ..read more
Algoberry
3y ago
The Fibonacci sequence is a series of numbers where a number is the addition of the last two numbers, starting with 0, and 1.
Download from Github
fibonacci.c
1#include <stdio.h>2int main() {3 int i=0,j=0,t=0,k,n;4 printf("Enter the number of terms: ");5 scanf("%d",&n);6 for(k = 1;k <= n;k++) {7 t = i + j;8 printf("%d,",t);9 if(t == 0 && n >= 2) {10 t = 1;11 printf("%d,",t);12 k++;13 }14 i = j;15 j = t;16 }17 return 0;18}
Output
Ent ..read more
Algoberry
3y ago
If any number is equal to the sum of its own digits raised to the power of the number of digits is called Armstrong Number.
[Download Source code]
Armstrong.c
1 #include <stdio.h>2 int main() {3 int number, temp, count = 0, total = 0;4 printf("Enter the integer number: ");5 scanf("%d", &number);6 7 temp = number;8 while(temp > 0) {9 count = count + 1;10 temp = temp/10;11 }12 13 temp = number;14 while(temp > 0) {15 total = total + power(temp%10,count);16 temp = temp/10;17 }18 19 if(number == total) {20 printf("%d is an Armstrong number.\n", number);21 }22 else23 {24 printf ..read more
Algoberry
3y ago
A Double linked list is a linked data structure, it built like set of nodes and each node contain three portions (one Data portion & two Node Reference portions). Almost all Node References portion may connected to another node if it really had neighbor node or otherwise Reference portion marked as NULL.
Data portion can store any primitive data types or user defined object.The main purpose of using this data structure can travel bidirectional.
[Download Source code]
DoublyLinkedList.java
1 import java.util.Scanner;2 3 class DLLNode {4 DLLNode parentNode;5 int nodeValue;6 DLLNode child ..read more
Algoberry
3y ago
This project is developed based on the console user interface (CUI). It has own scanning algorithm for finding malicious code in each file during the scan. The core idea is to search/match the virus signatures in all scan files or directory. Usually, 90% of viruses/worm having own signature (Some repeat text founded in all affected binary files or archive files) and remain 10% Viruses are identified based on execution behavior.
[Download Source code]
Here I wrote code for signature-based scan algorithm, so I stored Virus signatures in separate databases and it organizes in file flat system f ..read more
Algoberry
3y ago
Hi friends, today I write a simple C program to create triangle pattern structure and its very easy and fun also.
[Download Source code]
triangle.c
1 #include<stdio.h>2 int main() {3 int triangleHeight = 0;4 int triangleWidth = 0;5 6 int middlePoint = 0;7 int startPoint = 0;8 int endPoint = 0;9 10 int outerLoop = 0;11 int innerLoop = 0;12 13 printf("Please enter the triangle Height:");14 scanf("%d",&triangleHeight);15 if(triangleHeight >= 2) {16 17 triangleWidth = triangleHeight * 2;18 if(triangleWidth%2 == 1)19 { triangleWidth++; }20 21 middlePoint = triangleWidth/2;22 startPo ..read more
Algoberry
3y ago
The web crawler is a computer program which used to collect/crawling the following key values(HREF links, Image links, Metadata.etc) from a given website URL. It is designed like intelligent to follow different HREF links which are already fetched from the previous URL, so in this way, Crawler can jump from one website to other websites. Usually, it called a Web spider or Web Bot. This mechanism always acts as the backbone of the Web search engine.
[Download Source code]
config.php
1 <?php2 //---- Href Element Syntax Start ----3 $hrefTag = array();4 $hrefTag[0] = "<a";5 $hrefTag[1 ..read more
Algoberry
3y ago
A Linked list is a linked data structure, it built like set of nodes and each node contain two portions (Data portion & Node Reference portion).Data is always stored in Data portion (Maybe primitive data types eg Int, Float .etc or we can store user-defined data type also eg. Object reference) and similiarly Node Reference portion may connected to another node if it really had neighbor node or otherwise Reference portion marked as NULL.
[Download Source code]
LinkedList.java
1 import java.util.Scanner;2 3 class LLNode {4 int nodeValue;5 LLNode childNode;6 7 public LLNode(int nodeValue ..read more