Skip to content

rubix_cube#1

Open
isha27255 wants to merge 1299 commits intoisha27255:masterfrom
MukulCode:master
Open

rubix_cube#1
isha27255 wants to merge 1299 commits intoisha27255:masterfrom
MukulCode:master

Conversation

@isha27255
Copy link
Copy Markdown
Owner

No description provided.

MukulCode and others added 30 commits October 18, 2022 23:49
First open source contribution
Create Inplace rotate square matrix by 90 degrees by forming cycles
Added solution  leetcode no 240. Search 2DMatrixII
 2427. Number of Common Factors
regular expression matching code added
Todolist  web application using flask and MySql.
My First Ever Contribution to open source
This code sorts the input array based using the Insertion Sort algorithm. Insertion Sort has Time Complexity: O(N^2) and Auxiliary Space: O(1).
This is one of the questions of Pattern in C++ which gives more insights into how Loops work and how the Iteration takes place in nested Loops.
This java program returns the first and last occurrence of an element in an array
This java program returns the ceiling of a given number in a sorted array
This java program returns the floor of a given number in a sorted array
AGGRCOW - Aggressive cows
#binary-search

Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi <= 1,000,000,000).

His C (2 <= C <= N) cows don't like this barn layout and become aggressive towards each other once put into a stall. To prevent the cows from hurting each other, FJ wants to assign the cows to the stalls, such that the minimum distance between any two of them is as large as possible. What is the largest minimum distance?
Input

t – the number of test cases, then t test cases follows.
* Line 1: Two space-separated integers: N and C
* Lines 2..N+1: Line i+1 contains an integer stall location, xi
Output

For each test case output one integer: the largest minimum distance.
This code gives output of alpha pattern using for loops which gives better insights into how for loops work and how iteration takes place.
Pyramid Pattern using While Loop
MukulCode and others added 30 commits October 31, 2022 23:14
Added graph algorithms in java folder
Create FirstAndLastPosition.java
Contributed in Two Sum problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.