Skip to content

Instantly share code, notes, and snippets.

View Kewal89's full-sized avatar
πŸ’€
India Superpower 2025. πŸ’ͺ

Kewal Rathod Kewal89

πŸ’€
India Superpower 2025. πŸ’ͺ
  • Navi Mumbai, India
View GitHub Profile
@Kewal89
Kewal89 / ColorfulConsole_VSCode.ts
Last active August 10, 2022 18:35
Some random BS for VS Code Colorful consoles.
interface ConsoleBrainerTypes {
label: string
text?: "" | any
highlight?: string | Array<string>
type?: "log" | "info" | "warn" | "error"
whole?: boolean
textColor?: "" | "red" | "green" | "yellow" | "blue" | "purple" | "cyan"
bgColor?: "" | "red" | "green" | "yellow" | "blue" | "purple" | "cyan"
}
@Kewal89
Kewal89 / MonsoonUmbrella.js
Last active August 26, 2021 05:41
Monsoon Umbrella Hackerrank Solution. (Partial)
/* Simple Monsoon Umbrella Problem Solution in Node.js */
function solve (n, umbrella) {
if (umbrella === null || umbrella.length === 0 || n < 1)
return -1 // Ez Pz
var i = umbrella.length - 1
umbrella.sort() // or umbrella.reverse() but reverse the below condtions.
// umbrella = sortMe(umbrella) // Use this if sort funtion isn't available in hackerrank.
var count = 0
while (n >= 0 && i >= 0) { // or reverse