Code Monkey home page Code Monkey logo

data-structure-and-algorithms's Introduction

Hi there! I'm Ephrem Demelash

  • 👀 I’m interested in Web development, Blockchain, and Zen 🧘‍♂️
  • 🌱 I’m currently learning more about AWS and Go Lang
  • 💞️ I’m looking to collaborate on exciting and fun projects
  • 📫 How to reach me Twitter: demelash_ephrem Linkedin: ephrem-demelash GitHub EphremDeme

My GitHub Stats

data-structure-and-algorithms's People

Contributors

0xritesh avatar allcontributors[bot] avatar amarks444 avatar amn2 avatar ankitaugale23 avatar anshmishra2001 avatar bamblebam avatar colossal-pepe avatar debadribasak avatar double77x avatar druffl3 avatar ek08 avatar ephremdeme avatar gebleksengek avatar hannibal404 avatar ishaangupta-yb avatar jaydulera avatar kanhakhatri065 avatar khannakshat7 avatar lakshit-chiranjiv avatar neelansh15 avatar nut556 avatar phistav avatar priti24 avatar richie94 avatar softgengaurav avatar tlynx538 avatar vivekagent47 avatar yashasvimisra2798 avatar zafar-hussain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

data-structure-and-algorithms's Issues

Linked List in python

Python implementation of linked list data structure

Implement common linked list ADT
which supports: insert, delete, search and print elements

Hashing Implement

Implement hashing in any language but javascript. Try to include probing techniques.

Implement Merge Sort

Implement merge sort with any language

Input : unsorted array

Output: sorted array

Pascal Triangle

Implement pascal triangle in any language inside Algorithms/Pascal folder.

input: rows
output: 1
1 1
1 2 1
1 3 3 1

Linear search

Linear search implementation with any language

Input: array and search key

Output: print index of key or return -1 if not found

Binary Search Tree

implement binary search in C++, Java, python, or in any other language

Add hacktoberfest label to the repoaitory

@ephremdeme please add the Hacktoberfest label to the repository to make it eligible to participate in Hacktoberfest2020. As, most of our contributors are Hacktoberfest aspirants we don't want their effort to go in vain.

Implementation of firstDuplicate

--Adapted from CodeSignal.com---
Given an array a that contains only numbers in the range from 1 to a.length, find the first duplicate number for which the second occurrence has the minimal index. In other words, if there are more than 1 duplicated numbers, return the number for which the second occurrence has a smaller index than the second occurrence of the other number does. If there are no such elements, return -1.

Example

For a = [2, 1, 3, 5, 3, 2], the output should be firstDuplicate(a) = 3.

There are 2 duplicates: numbers 2 and 3. The second occurrence of 3 has a smaller index than the second occurrence of 2 does, so the answer is 3.

For a = [2, 2], the output should be firstDuplicate(a) = 2;

For a = [2, 4, 3, 5, 1], the output should be firstDuplicate(a) = -1.
Input/Output

[execution time limit] 4 seconds (py3)

[input] array.integer a

Guaranteed constraints:
1 ≤ a.length ≤ 105,
1 ≤ a[i] ≤ a.length.

[output] integer

The element in a that occurs in the array more than once and has the minimal index for its second occurrence. If there are no such elements, return -1.

Check two strings are anagrams

Check weather the given two strings are anagrams of each other, i.e weather they contain the same letter.

Example :
Input: abc & cab //abc is anagrams with cab, bac, cab..
Output: True

Check Palindrome of integers

Build a function that checks weather a given number is a palindrome or not without using a strings. Implement it using any language.

For example:
input: 12321
output: true

 input: 12344321
 output: false

N-Queen Problem[Backtracking Algorithm]

Backtracking Algorithm
Famous N-Queen Problem
Language- C++

When Given a number n as input
It outputs the number of ways of arranging queens in that NxN chessboard such that no two queens can kill each other.

for eg: n=4
there are two possible ways which are outputted like this-
.Q..
...Q
Q...
..Q.

..Q.
Q...
...Q
.Q..

for n=3 there are no possibilities and so on....
Can I work on this problem?

Factorial of n in any language

Create a Factorial of n in any language

Brownie points for Recursive solutions, but all solutions are appreciated.

Please put your solution in ../data-structure-and-algorithms/Mathematics/Factorial folder

cheers

Check Prime Number

Build a program that checks weather a given number is a prime or not. Don't forget to optimize for performance.
Implement it using any language.

input: 1109
output: True

input: 1110
output: False

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.