Bhaskar
1.2K posts

Bhaskar
@JoshraK_4K
SWE at ICRA Analytics | Life, Code, Chai, Game and Chill
Kolkata Katılım Şubat 2022
453 Takip Edilen128 Takipçiler
Sabitlenmiş Tweet

Updated the website for the executable download.
New Link - she-plus-plus.vercel.app
And released the initial version (v.10) - github.com/bhaskar4k/She-…
Bhaskar@JoshraK_4K
Got bored this evening. so I casually created my own programming language: 𝗦𝗵𝗲++ 😏💻 Compiles smooth, runs fast, and yeah. She’s got a little attitude too. Who’s ready to code with her? 😉 Repo : github.com/bhaskar4k/She-… Exe Download Link : dynamic-toffee-a27b17.netlify.app #coding
English

Got bored this evening. so I casually created my own programming language: 𝗦𝗵𝗲++ 😏💻
Compiles smooth, runs fast, and yeah. She’s got a little attitude too.
Who’s ready to code with her? 😉
Repo : github.com/bhaskar4k/She-…
Exe Download Link : dynamic-toffee-a27b17.netlify.app
#coding


English
Bhaskar retweetledi
Bhaskar retweetledi

Problem: Given a sorted arrays of size N, find 2 indices i and j, such that a[i] + a[j] = X
Algorithm that almost everyone memorises:
i = 0, j = n - 1
while(i <= j)
if(a[i] + a[j] = X) ans = {i, j}, break
else if(a[i] + a[j] > X) j--
else i++
Why does it work? Think about the answer being a cell (i, j) in the grid in image. Red cells can never be the answer.
Now, start at top right of the grid.
If a[i] + a[j] > X, eliminate column by doing j--
If a[i] + a[j] < X, eliminate row by doing i++
You see how you will always get to your answer?
At the end of the day, you can either use math or some clever visualisations to fully understand an algorithm. As you gain more experience in competitive programming, you should prefer math. As a beginner visualisations also work really well.

English

@sparrow_harsh Try implementing a system where Undo and Redo feature is present
English

I’ve been coding for 4–5 years and never used a deque.
Today I saw most top-ranked solutions used it, and the code looked much simpler.
Any good problems to practice deque?
#leetcode
English

Logging out for weekend, after submitting 52 hours of timesheet for a 40 hours of work-week.
#CorporateLife
#WeekendVibes
#weekendmood

English

@JoshraK_4K @AryanSandeepRa1 Mere comment krne se 3 logon ko kuch jyada hi pareshani hai 😔
हिन्दी

@MasterMuskan22 @JoshraK_4K Ye comment karna chalu nhi Kara hai 😂 jab karega to koi naa koi baith jayegi 😂
#iykyk
हिन्दी

@JoshraK_4K Bike to khareed liya, back seat par to koi baith nhi rhi 🌚🌚
English

When you know, you're creating a goated shit, then you don't care about how the UI is.......
dhruvieiei@StackDhruv
Just joined Codeforces. Why is the UI so bad and the website so laggy… is this part of the experience? 😭
English



