Git Product home page Git Product logo

engineer-game-dsa-challenge's Introduction

Engineer-Game-DSA-Challenge

This project contains solutions to the Data Structure and Algorithm Challenge from the program Engineer Game.

Challenge

Big O Notation:

Sum of Natural Numbers:

  • Calculate the sum of the first n natural numbers.

Maximum Number in a List:

  • Find the maximum number in an unordered list.

Product of Elements in a List:

  • Calculate the product of all elements in a list.

Sum of Squares:

  • Calculate the sum of squares of the first n natural numbers.

Search for Element in a List:

  • Implement a function to check if an element is in a list.

Mathematics:

Check Even Number:

  • Implement a function to check if a given number is even.

Check Prime Number:

  • Implement a function to check if a number is prime.

Power of a Number:

  • Calculate the value of a number x raised to the power n.

Divisors of a Number:

  • Find all the divisors of a given integer.

Perfect Numbers:

  • Find the perfect numbers in a given range.

Recursion:

Factorial:

  • Implement a recursive function to calculate the factorial of a number n.

Fibonacci Series:

  • Implement a recursive function to calculate the nth number in the Fibonacci series.

Recursive Power:

  • Calculate the value of a number x raised to the power n recursively.

Sum of Elements in a List:

  • Calculate the sum of all elements in a list using recursion.

Number of Paths in a Grid:

  • Calculate the number of possible paths to reach the opposite corner of an m x n grid.

Lists:

Sum of Numbers in a List:

  • Implement a function to calculate the sum of all numbers in a list.

Remove Duplicates:

  • Remove duplicate elements from a list.

Count Occurrences:

  • Count how many times a specific element appears in a list.

Largest Product in a List:

  • Find the largest product that can be obtained from three elements in a list of integers.

List without Even Elements:

  • Create a new list with the odd elements of a given list.

Dictionaries:

Word Count:

  • Count the frequency of each word in a list of words.

Grade Dictionary:

  • Create a dictionary associating student names with their grades.

Count Dictionary:

  • Given a list, create a dictionary that counts how many times each element appears.

Inverted Dictionary:

  • Invert the keys and values of a dictionary.

Dictionary Comparison:

  • Compare two dictionaries and find the keys that are common in both.

Searches:

Linear Search:

  • Implement a linear search to find an element in a list.

Recursive Binary Search:

  • Implement binary search recursively on a sorted list.

Substring Search:

  • Implement a function to search for a substring in a given string.

Matrix Search:

  • Implement a search in a matrix sorted by rows and columns.

Word Search in Text:

  • Search for the position of a word in a text and display the context.

Sorting:

Bubble Sort:

  • Implement the bubble sort algorithm to sort a list of numbers.

Insertion Sort:

  • Implement the insertion sort algorithm to sort a list of numbers.

Selection Sort:

  • Implement the selection sort algorithm to sort a list of numbers.

Merge Sort:

  • Implement the merge sort algorithm to sort a list of numbers.

Quick Sort:

  • Implement the quick sort algorithm to sort a list of numbers.

Trees and Graphs:

Depth-First Search (DFS):

  • Implement depth-first traversal in an undirected graph.

Breadth-First Search (BFS):

  • Implement breadth-first traversal in an undirected graph.

Binary Search Tree (BST):

  • Implement a binary search tree and perform in-order, pre-order, and post-order traversals.

Height of a Binary Tree:

  • Calculate the height of a binary search tree.

Node-to-Root Path:

  • Find the path from a node to the root of a binary tree.

Learning Logs

Date Learning

Resources

engineer-game-dsa-challenge's People

Contributors

kevinknights29 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.