Skip to main content

Recent Posts

Header Typography MUI

May 11, 2025C S

0 likes • 3 views

// theme.ts
import { createTheme } from '@mui/material/styles';
const theme = createTheme({
typography: {
h1: {
fontSize: '2rem',
fontWeight: 700,
lineHeight: 1.3
},
h2: {
fontSize: '1.625rem',
fontWeight: 700,
lineHeight: 1.35
},
h3: {
fontSize: '1.375rem',
fontWeight: 700,
lineHeight: 1.4
},
h4: {
fontSize: '1.125rem',
fontWeight: 700,
lineHeight: 1.45
},
h5: {
fontSize: '1rem',
fontWeight: 700,
lineHeight: 1.5
},
h6: {
fontSize: '0.875rem',
fontWeight: 700,
lineHeight: 1.5
},
},
});

C# .editorconfig

Apr 26, 2025C S

0 likes • 3 views

[*.cs]
indent_style = space
indent_size = 2
tab_width = 2
csharp_new_line_before_open_brace = none

LeetCode - Search Insert Position

Oct 22, 2024C S

0 likes • 6 views

function binarySearch(nums: number[], target: number): number {
let left = 0;
let right = nums.length - 1;
while (left <= right) {
const mid = left + Math.floor((right - left) / 2);
if (nums[mid] === target) {
return mid;
} else if (nums[mid] < target) {
left = mid + 1;
} else {
right = mid - 1;
}
}
return left;
}
function searchInsert(nums: number[], target: number): number {
return binarySearch(nums, target);
};

Post Statistics

Posts

No Posts Found

It looks like C S has no public posts

Likes

Please Log In

You must be authenticated to view a user's likes

Shared

Please Log In

You must be authenticated to view a user's shared posts

Profile Privacy

Multi-Factor Authentication

Multi-Factor Authentication (MFA) is an authentication method that requires you to provide two or more verification factors to gain access to your account. In addition to username and password, MFA requires you to verify your email on every login, which decreases the likelihood of someone stealing your account.

Change Password

Forgot Password?

Identity Color

Changes the color of your profile icon and cursor highlight in the live code editor. You and other users will be able to view this change.

Delete Account

Deleting your account is permanent. All data associated with your account will be lost.