Skip to content

Instantly share code, notes, and snippets.

View Harry2876's full-sized avatar

Hariom Harsh Harry2876

View GitHub Profile
@Harry2876
Harry2876 / ScreenRecorderAndroid.kt
Created May 12, 2026 09:02
Screen Recorder Service Class of Android
class ScreenRecordService : Service() {
private var projection: MediaProjection? = null
private var recorder: MediaRecorder? = null
private var display: VirtualDisplay? = null
private var videoUri: Uri? = null
@Harry2876
Harry2876 / c.md
Last active August 25, 2024 10:51
C Programming lang

What is an algorithm? Give an example algorithm for any problem

An algorithm is a step-by-step procedure or a set of rules designed to perform a specific task or solve a particular problem. It provides a systematic method to follow in order to achieve the desired outcome. Example of an Algorithm: Let say we have to find the shortest path from a starting point to end point with so many different path connecting both ends, here we use something called dijskstra algorithm to find the shortest path between two path

Steps to Create an Algorithm

  1. Understand the Problem
  2. Plan the Algorithm
  3. Design the Algorithm
  4. Choose Data Structures