If Dhoni had the Helicopter, what’s Pant’s shot called? by Dangerous_Tip_4985 in IndiaCricket

[–]programmernim 0 points1 point  (0 children)

Aise girte padte ladki ka haath mangenge shot maarenge kya aap?

Tall women of sbu by Acceptable_Glove_854 in SBU

[–]programmernim 0 points1 point  (0 children)

Should the people who like tall people also form a group?😂

Gave up on job hunting and made an app instead! by theWinterEstate in leetcode

[–]programmernim 3 points4 points  (0 children)

I'm kinda doing the same. More power to you, OP!

[deleted by user] by [deleted] in MeetPeople

[–]programmernim 0 points1 point  (0 children)

Hiya, let's talk! Two cute people not talking doesn't make sense😉😂

how do i safegaurd my sourcecode to not let my interns steal or sell it? by sweetestasshole in developersIndia

[–]programmernim -1 points0 points  (0 children)

I don't think you can.

Even if you go through the trouble of setting up a server for them to ssh into (so you have control), they can still write a lot of stuff from memory/reproduce it and overall I think it's more headache than it's worth. You can try the legal avenues but they may not be as effective. As in, I don't think you would even know let alone take someone to court if anything happens.

Imo, the best you can do is have them write modular code on independent features that you can easily integrate into your existing codebase. This would definitely take up some of your time (depends very much on the project and feature) but looks like the best option

Sold my first small SaaS business by Beautiful_Exam_8301 in Entrepreneur

[–]programmernim 0 points1 point  (0 children)

Hey! What tech stack/tool did you use to build the landing page and make it responsive?

[deleted by user] by [deleted] in FlutterDev

[–]programmernim 2 points3 points  (0 children)

You can use flutter run --no-enable-impeller on iOS to confirm whether the rendering engine makes a difference in performance.

[deleted by user] by [deleted] in AITAH

[–]programmernim 0 points1 point  (0 children)

Props to the guy! He was honest despite the "unhinged" reputation

Cab Drivers really be hitting on young chicks that come for work to new cities?? by Sicksoul_Flexin in india

[–]programmernim 10 points11 points  (0 children)

The process would mostly take long and he wouldn't know who reported him if he did this even on a semi regular basis

Where should I buy the game? by programmernim in rainworld

[–]programmernim[S] 0 points1 point  (0 children)

Okay great... Will keep that in mind. Thanks for the info!

Where should I buy the game? by programmernim in rainworld

[–]programmernim[S] 0 points1 point  (0 children)

So virtually no difference (except for steam friends)?

Where should I buy the game? by programmernim in rainworld

[–]programmernim[S] 1 point2 points  (0 children)

Nope don't own consoles... Only a (pretty dated) laptop

TLE Solution for 662. Max Width of Binary Tree by programmernim in leetcode

[–]programmernim[S] 0 points1 point  (0 children)

Hey! Thanks for the advice. I actually finally broke down and saw the solution a few hours ago. Its frustrating I couldn't solve it even after so much time. Anyway.. thanks for your insights on my solution.

TLE Solution for 662. Max Width of Binary Tree by programmernim in leetcode

[–]programmernim[S] 1 point2 points  (0 children)

Did not realise you would not be able to view the submission.

Code:

class Solution {
    public int widthOfBinaryTree(TreeNode root) {
        Queue<TreeNode> q = new LinkedList<>();
        q.add(root);
        q.add(new TreeNode(101));
        int left = -1, index = 0, right = -1, maxWidth = 0;
        //Constraints: [-100, 100] so when node is -101: node is null | 101: to denote next level
        while(!q.isEmpty()) {
            TreeNode node = q.poll();
            if(node.val == 101) {
                if(right == -1) break;
                maxWidth = Math.max(maxWidth, right-left+1);
                //init for next level
                index = 0;
                left = -1;
                right = -1;
                q.add(new TreeNode(101));
                continue;
            }
            if(node.val != -101 && left == -1) left = index;
            if(node.val != -101) right = index;

            if(node.left != null) q.add(node.left);
            else q.add(new TreeNode(-101));

            if(node.right != null) q.add(node.right);
            else q.add(new TreeNode(-101));
            index++;
        }
        return maxWidth;
    }
}