C#

How can I clamp Quaternion on Y?

Later also to the sides but for now on Y.
using UnityEngine;
using System;
using System.Collections;

public class RotationTest : MonoBehaviour
{
public Transform target;
public Transform objToRotate;

void LateUpdate()
{

Merge Intervals leetcode (56)

The Question is as follows:
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.
I actually got th…