Skip to content

CSGEEKSHUB

  • Home
  • C Programming
  • HackerRank Programs
  • Leetcode

Leetcode

LeetCode Minimum Moves to Reach Target Score Solution

You are playing a game with integers. You start with the integer 1 and you want to reach the integer target. In one …

Read more

Categories Leetcode

LeetCode: Best Time to Buy and Sell Stock Solution in C

You are given an array of prices where prices[i] is the price of a given stock on an ith day. …

Read more

Categories Leetcode

LeetCode: Intersection of Two Arrays in C

Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear …

Read more

Categories Leetcode

LeetCode: Merge Sorted Arrays

You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing …

Read more

Categories Leetcode

LeetCode Two Sum Solution

Given an array of integers nums and an integer target, return indices of the two numbers such that they add …

Read more

Categories Leetcode

Maximum Subarray Solution

In this tutorial, we will learn to find a solution to a maximum subarray problem using C and C++. First, …

Read more

Categories Leetcode

80. Remove Duplicates from Sorted Array II

Given an integer array of nums sorted in non-decreasing order, remove some duplicates in-place such that each unique element appears …

Read more

Categories Leetcode

Remove Duplicates from Sorted Array

In this tutorial, we will write a simple c program to remove duplicate elements from a sorted array. In order …

Read more

Categories Leetcode

Recent Posts

  • Introduction to Linked Lists
  • Linked List Node Insertion a Node at nth Position
  • Linked Lists vs Arrays
  • LeetCode Minimum Moves to Reach Target Score Solution
  • Pointers as Function Returns

  • Privacy Policy
  • Terms
  • Contact
© 2023 CSGEEKSHUB • Built with GeneratePress