Solved leetcode problem 26: Remove duplicates (sorted array) using 2 pointers 👉 -1st element rehne do as it is -k=1 rakho (write pointer) -Loop from i=1: -if nums[i] != nums[i-1] -> nums[k]=nums[i], k++ else skip -Return k → jitne unique mile
3
Hi!!!!! Solved LeetCode problem 1752 today (Check if the array is sorted and rotated). Key concepts I understood in this problem: Sorted + rotated → order breaks only once (track with count). Loop 0 -> n-1, compare nums[i] with nums[(i+1) % n]. If count > 1 ->False, else True
3
Printed Pascal's Triangle. Here's the code!!! github.com/Isha01-S/c_practi…
2
Printed loop2 using goto find the code on this link: github.com/Isha01-S/c_practi…
2
#coding #programming #SoftwareEngineering 1, 2, Buckle my shoe 3, 4, Code won’t store 5, 6, Debugging kicks 7, 8, Forgot to save 9, 10, Start again!!!!!!!!!!!!!!!!!!!!!!!!!
3
Solved these pyramid problems in C language today. Find the source code on this github link: github.com/Isha01-S/c_practi…
3
Created a program to print star pyramid. Here's the code and the output:
2
Created a program to find the lcm and hcf of two numbers. Here's the code and the output:
2
Created a program to print the triad numbers. Here's the code and the output
2
I created a number guessing game in C where the user has a limited number of lives. Here’s the code and output:
2