MCPcopy Index your code
hub / github.com/CodeToExpress/dailycodebase / oneEditAway

Function oneEditAway

day7/JavaScript/sol.js:10–39  ·  view source on GitHub ↗

* @author MadhavBahl * @date 28/12/2018 * METHOD - Consider the 3 cases separately, * 1) If difference in lengths is more than 1 then print no and exit * 2) If the length is same and the hamming distance is 1, print yes * 3) If difference in length equals 1, then loop through the bigger

(str1, str2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sol.jsFile · 0.70

Calls 1

checkOneEditFunction · 0.85

Tested by

no test coverage detected