Giter VIP home page Giter VIP logo

javaproblems's Introduction

JavaProblems

Just Read Question And Try YourSelf In Any Language.
!! Have FUN !!
I will post Solution Of Problem Quetion which i will Encounter.
You Can Send Me Quetions I willbe Interested In Solving That

Automorphic Number

Number is said tobe Automorphic number if and only if its sqaure ends in the same digits as the number itself.

Example

76 is Automorphic as in 76*76=5776, 76=76(last two digit of square of number)

45 is not Automorphic as in 45*45=2025, 45!=25

Triangle Type

It takes sides of triangle as input and finds the type of Triangle

like

1)Equivalent

if Three sides are equal

2)Isosceles

if two sides are equal

3)Scalene

if all three sides are different

4)Right Angled Triangle

if one of three angles equals 90

Find Point

Program to Find a point whether it is inside the area of Triangle or outside.

The Coordinates of Random Point P(x,y) & Points of Triangle is Taken as Input like Point A(x1,y1), B(x2,y2), C(x3,y3) if point found inside the Area output "Inside" otherwise "Outside"

BreadthFirstSearch

BFS is an Algorithm that Searches through graphs, Queue DataStructure is used.

In BFS user can decide the starting point to begin the search and also can decide the end point but for simplicity,here first node is selected as starting point and last node is selected as end point.

adjacency matrix of order nxn (n is total number of node) is used to store the info of edges

'1' if there is edge, '0' if no edges(default)

DepthFirstSearch

Function is Similar to BFS to search through graphs, Stack DataStructure is used.

The DFS algorithm is a recursive algorithm that uses the idea of backtracking. It involves exhaustive searches of all the unvisited nodes by going ahead in depth in one path, if no unvisited node avalaible then it start backtracking means move backwards on the same path to find adjacent unvisited nodes if unvisited node found then that path will be selected for the search ..... till all nodes are visited it will repeat searching & backtracking.

javaproblems's People

Contributors

venom4171 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.