Skip to content

Tag: javascript

Sock Merchant problem in javascript using splice not working

My following solution worked for 6 test cases out of 9 test cases and i couldn’t wrap my head around on why is it not working for the following test case. Note: I used splice instead of the sorting first methodology. Thanks in advance. The problem: https://www.hackerrank.com/challenges/sock-merchant/pro…

‘-‘ In v-bind:style / Vue.js

I cant understand how to make CSS code into v-bind:style with symbol ‘-‘. If i try to do something like that: I get: Answer As explained in the Docs of Vue: “You can use either camelCase or kebab-case (use quotes with kebab-case) for the CSS property names” So you’d need to chang…